Hi !
Featured games (91)
games approved by the League of Dukes
Games in Showcase (757)
Games in Android Showcase (229)
games submitted by our members
Games in WIP (844)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  A couple of bugs  (Read 1980 times)
0 Members and 1 Guest are viewing this topic.
Offline aldacron

JGO Coder

Medals: 20
Exp: 19 years

Java games rock!

« Posted 2003-11-16 20:26:37 »

I've decided to get over my issues with distribution and use Java for my first indie title after all. To that end I've been familiarizing myself with LWJGL. I found a couple of runtime bugs on my system (Win98).

First, when in windowed mode (as I am most of the time when testing), bringing a background window to the foreground causes the borders of the LWJGL app window to disappear, but the client area remains on top. All kinds of funkiness goes on before I can get things back to normal. I bleieve this issue can be solved by scrolling down to line 388 of native/win32/org_lwjgl_opengl_Window.cpp and adding this right after the if/else block:


Technically the CLIPCHILDREN bit isn't needed, as it's the siblings we're worried about. However, if the day ever comes where you allow child windows it will be there.

The next thing is minor but irritating. After exiting a fullscreen app, a ghost is left in the Windows task bar. This is the same thing that happens with Quake 2. There's two fixes for that (one I know for sure works, the other I'm fairly certain).

Fix 1: in the same file as above, on line 214 in the closeWindow function, add this before the call to DestroyWindow:


This will eliminate the ghost for sure. As for the second way to fix it, I've never had any ghosts in the task bar in my own fullscreen C/C++ ogl apps. The thing that LWJGL has in common with Quake 2 but not with my code is that the windows are created with the WS_VISIBLE style and then ShowWindow is called. You only need do one or the other (preferably ShowWindow). When ShowWindow is called the WS_VISIBLE style is not needed and can be removed. WS_VISIBLE causes the window to be displayed as soon as it is created without the need for calling ShowWindow. Even if it doesn't fix the problem (which it should), it's redundant.

I would test these fixes myself, but I'm having some compile issues. After I setup my project, got my eax.h problems sorted (I have two different versions - one from MS and one some different folks, and the LWJGL code expects the MS version as in _EAXLISTERNERFOO->dwFlags instead of _EAXLISTENERFOO->ulFlags), I discovered that LWJGL is using some Win32 code my linker can't find. Looks like it's a platform SDK version problem. Anyway, I'm not going to mess with it anymore right now as I don't feel like downloading the platform SDK.

However, I'll be happy if you guys to drop these two lines in :)
Offline elias

Senior Devvie

« Reply #1 - Posted 2003-11-17 04:46:38 »

That's right - you need an updated Platform SDK to compile lwjgl on at least VC++ 6. Your fixes sound fair so they have been comitted - untested (I primarily run linux). Could Matzon or Cas please test?

- elias

Pages: [1]
  ignore  |  Print  

EgonOlsen (73 views)
2018-06-10 19:43:48

EgonOlsen (54 views)
2018-06-10 19:43:44

EgonOlsen (73 views)
2018-06-10 19:43:20

DesertCoockie (253 views)
2018-05-13 18:23:11

nelsongames (154 views)
2018-04-24 18:15:36

nelsongames (153 views)
2018-04-24 18:14:32

ivj94 (895 views)
2018-03-24 14:47:39

ivj94 (156 views)
2018-03-24 14:46:31

ivj94 (807 views)
2018-03-24 14:43:53

Solater (171 views)
2018-03-17 05:04:08
Java Gaming Resources
by philfrei
2017-12-05 19:38:37

Java Gaming Resources
by philfrei
2017-12-05 19:37:39

Java Gaming Resources
by philfrei
2017-12-05 19:36:10

Java Gaming Resources
by philfrei
2017-12-05 19:33:10

List of Learning Resources
by elect
2017-03-13 14:05:44

List of Learning Resources
by elect
2017-03-13 14:04:45

SF/X Libraries
by philfrei
2017-03-02 08:45:19

SF/X Libraries
by philfrei
2017-03-02 08:44:05 is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!