|
From: <eli...@us...> - 2007-02-23 08:21:04
|
Revision: 2742
http://svn.sourceforge.net/java-game-lib/?rev=2742&view=rev
Author: elias_naur
Date: 2007-02-23 00:21:02 -0800 (Fri, 23 Feb 2007)
Log Message:
-----------
Linux: Don't use XClearWindow to clear the window, but rely on the OpenGL clearing instead. Also, remove redundant attributes in XCreateWindow
Modified Paths:
--------------
trunk/LWJGL/src/native/linux/org_lwjgl_opengl_Display.c
Modified: trunk/LWJGL/src/native/linux/org_lwjgl_opengl_Display.c
===================================================================
--- trunk/LWJGL/src/native/linux/org_lwjgl_opengl_Display.c 2007-02-21 13:44:33 UTC (rev 2741)
+++ trunk/LWJGL/src/native/linux/org_lwjgl_opengl_Display.c 2007-02-23 08:21:02 UTC (rev 2742)
@@ -258,9 +258,7 @@
cmap = XCreateColormap(disp, root_win, vis_info->visual, AllocNone);
attribs.colormap = cmap;
attribs.event_mask = ExposureMask | /*FocusChangeMask | */VisibilityChangeMask | StructureNotifyMask | KeyPressMask | KeyReleaseMask | ButtonPressMask | ButtonReleaseMask | PointerMotionMask;
- attribs.background_pixel = 0xFF000000;
- attribs.win_gravity = NorthWestGravity;
- attribmask = CWColormap | CWBackPixel | CWEventMask | CWWinGravity;
+ attribmask = CWColormap | CWEventMask;
if (isLegacyFullscreen(window_mode)) {
attribmask |= CWOverrideRedirect;
attribs.override_redirect = True;
@@ -297,7 +295,6 @@
}
XMapRaised(disp, win);
waitMapped(disp, win);
- XClearWindow(disp, win);
XSetInputFocus(disp, win, RevertToNone, CurrentTime);
if (!checkXError(env, disp)) {
destroyWindow(env, disp, win);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|