Hello Guest

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

  • 3 Replies
  • 4918 Views
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/

Re: [BUG] OS X: Window resizing, Title overlaps window contents
« Reply #1 on: April 02, 2012, 17:05:11 »
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/

Re: [BUG] OS X: Window resizing, Title overlaps window contents
« Reply #2 on: April 14, 2012, 17:54:23 »
Same problem on my Mac. Kappa is aware of it and says he's working on a fix.

*

Offline kappa

  • *****
  • 1316
Re: [BUG] OS X: Window resizing, Title overlaps window contents
« Reply #3 on: April 14, 2012, 19:31:37 »
This should be fixed in the nightly builds now.

Please do test and confirm.

Thanks for reporting.
« Last Edit: April 14, 2012, 21:24:25 by kappa »