FunkyFr3sh / cnc-ddraw

GDI, OpenGL and Direct3D 9 re-implementation of the DirectDraw API for classic 2D games for better compatibility with Windows 2000, XP, Vista, 7, 8, 10, 11, Wine (Linux/macOS/Android) and Virtual Machines
https://discord.gg/afWXJNDDF5
MIT License
2.13k stars 143 forks source link

Enemy Infestation mouse cursor incorrect position, locktopleft setting missing? #251

Closed emxd closed 9 months ago

emxd commented 9 months ago

Hello,

in Enemy Infestation(1998), with upscaled presentation setting, the mouse cursor is clipped in a smaller area. In older cnc-ddraw versions one could set locktopleft=true and this would fix the problem. In the newer versions, the setting was removed? Or maybe there's some other way on how to fix this? I tried hook_peekmessage=true, but it didn't seem to work.

demo -> https://icedrive.net/s/StG5h9kbkNYFk5D5FFibjgD6a64i

some other demo link, if you prefer "official" sources -> https://archive.org/download/gs-299-b/GS299B.ISO/Demos%2FEnemyInf%2FENEMYINF.EXE (from https://archive.org/details/gs-299-b)

Funky-Fr3sh commented 9 months ago

Got it fixed!

And yes, the locktopleft setting was removed. It didn't really solve any of the problems, it only disabled some features. It was more of a temporary workaround I added back then.

cnc-ddraw.zip

new setting hook_getmessage=true added

emxd commented 9 months ago

Yes, it works correctly. Thanks!