Hello Guest

[FIXED] Resizable display and mouse cursor

  • 5 Replies
  • 10838 Views
[FIXED] Resizable display and mouse cursor
« on: December 29, 2011, 13:18:29 »
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
« Last Edit: December 29, 2011, 13:20:50 by dr_evil »
Download Cultris II, the fastest Tetris clone from http://gewaltig.net/

Re: [BUG] Resizable display and mouse cursor
« Reply #1 on: December 29, 2011, 17:50:59 »
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/

*

Offline Matzon

  • *****
  • 2242
Re: [BUG] Resizable display and mouse cursor
« Reply #2 on: December 30, 2011, 08:39:41 »
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.

Re: [BUG] Resizable display and mouse cursor
« Reply #3 on: December 30, 2011, 22:21:57 »
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/

*

Offline princec

  • *****
  • 1933
    • Puppygames
Re: [BUG] Resizable display and mouse cursor
« Reply #4 on: January 02, 2012, 20:22:30 »
Nice patch, fixes an irritation.

Cas :)

*

Offline Matzon

  • *****
  • 2242
Re: [FIXED] Resizable display and mouse cursor
« Reply #5 on: January 02, 2012, 22:12:03 »
patch applied