[FIXED] Resizable display and mouse cursor

Started by Simon Felix, December 29, 2011, 13:18:29

Previous topic - Next topic

Simon Felix

Hello

When enabling resizable windows I can move the cursor over the lower right edge. The cursor changes as expected to the SizeNWSE cursor. When moving the cursor back into the window it stays that way when it should change back to the LWJGL-set cursor.

This issue can be reproduced with Windows 7 (and 8 ), lastest patch-levels.

Cheers,
Simon
Download Cultris II, the fastest Tetris clone from http://gewaltig.net/

Simon Felix

Also, working around the issue is made difficult by another bug. Re-setting the cursor (every frame) changes the cursor even when it's positioned outside the client area, over the window border for example. That way it starts to flicker when I try to resize the window.
Download Cultris II, the fastest Tetris clone from http://gewaltig.net/

Matzon

I have experienced issues with the cursor not changing back, but I haven't found the reason. This is with the generic cursor.
I have not tested with a LWJGL set cursor, but there could be some issues there.

Simon Felix

Handling WM_SETCURSOR does the trick. Patch is attached. One day, when I'm all grown up I'll be a real Win32 programmer...
Download Cultris II, the fastest Tetris clone from http://gewaltig.net/

princec


Matzon