Update of /cvsroot/java-game-lib/LWJGL/src/native/win32
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19977/src/native/win32
Modified Files:
context.c
Log Message:
Removed update() from Display.createWindow() as it caused garbage to appear as the first frame. Added a black background brush t win32 window class
Index: context.c
===================================================================
RCS file: /cvsroot/java-game-lib/LWJGL/src/native/win32/context.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- context.c 29 Apr 2005 15:20:19 -0000 1.7
+++ context.c 6 May 2005 09:40:36 -0000 1.8
@@ -63,7 +63,7 @@
windowClass.hInstance = dll_handle;
windowClass.hIcon = LoadIcon(NULL, IDI_APPLICATION);
windowClass.hCursor = LoadCursor(NULL, IDC_ARROW);
- windowClass.hbrBackground = NULL;
+ windowClass.hbrBackground = (HBRUSH)GetStockObject(BLACK_BRUSH);
windowClass.lpszMenuName = NULL;
windowClass.lpszClassName = class_name;
|