Setting resize mode after window creation moves window

Started by GinjaNinja32, May 10, 2013, 22:25:45

Previous topic - Next topic

GinjaNinja32

Calling Display.setResizable() after the window has been created moves the window either 5px down and 5px right (setting true), or 5px up and 5px left (setting false).

Tested in LWJGL 2.8.4 and 2.9.0, originally in OpenGL2.0 (with LWJGL-Basics - https://github.com/mattdesl/lwjgl-basics/wiki), then 1.1 (I can't do 2.0 in pure LWJGL  :( )

Code: http://pastebin.com/i9x0MgbB

EDIT: Suddenly realised that I hadn't mentioned the one thing that makes this very annoying - the viewport doesn't move the 5px each way. The viewport remains in the original location of the window unless it is updated by either minimizing/un-minimizing or actually resizing the window.