LWJGL
May 22, 2013, 13:35:39 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: LWJGL is now using GitHub
 
   Home   Help Search Login Register  



Pages: [1]
  Print  
Author Topic: [FIXED] OS X: Window resizing, Title overlaps window contents  (Read 1261 times)
Simon Felix
Talks Too Much
***
Posts: 103



WWW
« on: March 27, 2012, 16:15:55 »

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
Logged

Download Cultris II, the fastest Tetris clone from http://gewaltig.net/
Simon Felix
Talks Too Much
***
Posts: 103



WWW
« Reply #1 on: April 02, 2012, 10:05:11 »

Can anyone at least repro the problem with the supplied test? Does this happen with your app/game too?
Logged

Download Cultris II, the fastest Tetris clone from http://gewaltig.net/
mattdesl
Newbie
*
Posts: 26


« Reply #2 on: April 14, 2012, 10:54:23 »

Same problem on my Mac. Kappa is aware of it and says he's working on a fix.
Logged
kappa
Administrator
Nerdus Imperius
*****
Posts: 1112



« Reply #3 on: April 14, 2012, 12:31:37 »

This should be fixed in the nightly builds now.

Please do test and confirm.

Thanks for reporting.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines
SMFAds for Free Forums
Valid XHTML 1.0! Valid CSS!