LWJGL Forum

Programming => Lightweight Java Gaming Library => Topic started by: tomb on April 28, 2004, 17:13:56

Title: Win2000 Window title bar hiding top of gl canvas
Post by: tomb on April 28, 2004, 17:13:56
In window 2000 the top of the opengl canvas is hidden by the title bar. I've tried resizing the title bar and it is not taken into consideration by lwjgl. If I increase the bar height then more of the canvas is hidden.

The mouse coordinates seems to be correct relative to the frame. Wich has the effect that the mouse do not match the graphics in my menu :(
Title: Win2000 Window title bar hiding top of gl canvas
Post by: Matzon on April 29, 2004, 20:51:06
this isn't the case with Windows XP at least - I'll verify this in the morning at work - stay tuned.
Title: Win2000 Window title bar hiding top of gl canvas
Post by: Matzon on April 30, 2004, 05:10:52
uhm... aren't you talking SWT ?
Title: Win2000 Window title bar hiding top of gl canvas
Post by: tomb on April 30, 2004, 12:05:16
I'm not using SWT, only standard lwjgl window mode. I change the title bar size in the display controll panel.

It works correcly in XP. It is only in win 2000 that I see the bug. Only tested it on win2000 computer though, so I can't be sure if it is a general win2000 bug or if it's just my computer that is messed up.
Title: Win2000 Window title bar hiding top of gl canvas
Post by: Optus on April 30, 2004, 16:08:10
My Win2K Pro box does this too.  Running the LWJGL Test apps, they all exhibit this.  They go to full screen, but the title bar stays.  It looks fairly ugly.  On top of this, I should mention that the Grass test doesn't run on my computer, the initialization output looks normal, and it doesnt crash.  It just doesn't display anything, only a black screen (with a title bar at the top, even though it's full-screen).
Title: Win2000 Window title bar hiding top of gl canvas
Post by: elias on May 10, 2004, 13:27:53
I've just installed a win2k pro and I can't reproduce the problem. I'm running with the latest service pack and nvidia drivers on an 1700 MHz AMD processor.

- elias
Title: Win2000 Window title bar hiding top of gl canvas
Post by: elias on May 14, 2004, 12:42:23
I just found a potential bug that could cause the problem you're experiencing. A fix has been comitted, and I'll see if I can persuade someone to provide a build for you.

- elias
Title: Win2000 Window title bar hiding top of gl canvas
Post by: elias on May 14, 2004, 13:40:49
And here it is, thanks to Cas:

http://odense.kollegienet.dk/~naur/lwjgl.dll

- elias
Title: Win2000 Window title bar hiding top of gl canvas
Post by: tomb on May 14, 2004, 17:30:43
Get the following exception:

java.lang.UnsatisfiedLinkError: setTime
at org.lwjgl.Sys.setTime(Native Method)
at org.lwjgl.Sys.initialize(Unknown Source)
at org.lwjgl.Sys.<clinit>(Unknown Source)
at org.lwjgl.Display.<clinit>(Unknown Source)
at sh.SquareHeads.initLwjgl(SquareHeads.java:174)
at sh.SquareHeads.main(SquareHeads.java:1352)

Do you also got a jar I can download. Or do I have to compile it from cvs?
Title: Win2000 Window title bar hiding top of gl canvas
Post by: elias on May 14, 2004, 17:39:44
Sure:

http://odense.kollegienet.dk/~naur/lwjgl.jar

- elias
Title: Win2000 Window title bar hiding top of gl canvas
Post by: tomb on May 14, 2004, 18:23:13
Thanks!

Still got the same problem :(

I'm running:
Microsoft Windows 2000 Professional
5.00.2195
Service Pack 4

All "Critical Updates and Service Packs" installed.