setResizable

Started by Obsyd, January 01, 2013, 17:25:36

Previous topic - Next topic

Obsyd

Hi there!
I have been messing around with Display.setResizable(). Everything was fine until I tested my code on another machine.
The problem is that when I grab the corner of the window, the window starts to shrink!  ???
And my mouse is heading to the 0,0 coordinate.

I'm not doing anything special, I only reset te glViewport(),glOrtho() when lwjgl detects that the window has been resized.
When playing around with Mouse.setGrabbed() the problem occurs less frequently.

I'm certain that I'm doing something terribly wrong. :)
The weird thing is that there are no problems on my system (win7 nvidia). But the error happens on a similar system (win7 ati).

My code:
Simple lwjgl window, no setParent(),30fps loop.
Every logic tick, check if the display was resized.
If it was resized do some basic opengl stuff.

Thanks for your help!


Obsyd

So this is how my problem looks:
http://www.youtube.com/watch?v=j0gp1xc6TAE

The weird thing is that this does not happen on certain configs.

What is happening in the vid:
I press the windows button to get out of the window. (mousegrabbed=true)
Then I try to resize the window, but my window starts to shrink.  :-\