Hello Guest

Setting resize mode after window creation moves window

  • 0 Replies
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.
« Last Edit: May 10, 2013, 23:05:19 by GinjaNinja32 »