[FIXED] OS X: Window resizing, Title overlaps window contents

Started by Simon Felix, March 27, 2012, 23:15:55

Previous topic - Next topic

Simon Felix

Hi everyone

Another bug report: Window resizing on OS X leads to weird results. Here's how it works:
1. Create a resizable LWJGL window
2. Display.getHeight() returns 336
3. Make the window wider (with your mouse, don't change the height - drag the right border)
4. Display.getHeight() now suddenly returns 358

I feel it should still return 336. Also the window contents are now suddenly moved a couple of pixels (probably 22) higher. The problem is that the top 22 pixels of every window are covered by the title bar - the stuff under it is not visible. To recap: Everything looks & works fine, until the window is resized - then Display.getHeight() returns wrong values and OpenGL draws a couple pixels too high.

Here's a test version of our game, continously printing the display height when you start it from a terminal:
http://iru.ch/gutknech/cultris2.app.zip

Try to run it and note the number (Display height), then resize the window horizontally and note how the number suddenly changes. I tested it with the latest nightly build of LWJGL and on OS X 10.6 & 10.7.

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

Simon Felix

Can anyone at least repro the problem with the supplied test? Does this happen with your app/game too?
Download Cultris II, the fastest Tetris clone from http://gewaltig.net/

mattdesl

Same problem on my Mac. Kappa is aware of it and says he's working on a fix.

kappa

This should be fixed in the nightly builds now.

Please do test and confirm.

Thanks for reporting.