2
0
Brucey 3 жил өмнө
parent
commit
27624331c4

+ 2 - 2
glgraphics.mod/glgraphics.linux.c

@@ -243,6 +243,8 @@ BBGLContext *bbGLGraphicsCreateGraphics( int width,int height,int depth,int hz,B
 
 
 	vizinfo=_chooseVisual(flags);
 	vizinfo=_chooseVisual(flags);
 
 
+	int border = (flags & FLAGS_BORDERLESS) ? 0 : CWBorderPixel;
+
 	if (depth)
 	if (depth)
 	{
 	{
 		XF86VidModeGetModeLine(xdisplay,xscreen,&_oldMode.dotclock,(XF86VidModeModeLine*)&_oldMode.hdisplay );
 		XF86VidModeGetModeLine(xdisplay,xscreen,&_oldMode.dotclock,(XF86VidModeModeLine*)&_oldMode.hdisplay );
@@ -281,8 +283,6 @@ BBGLContext *bbGLGraphicsCreateGraphics( int width,int height,int depth,int hz,B
 		XF86VidModeSwitchToMode(xdisplay,xscreen,mode);
 		XF86VidModeSwitchToMode(xdisplay,xscreen,mode);
 		XF86VidModeSetViewPort(xdisplay,xscreen,0,0);
 		XF86VidModeSetViewPort(xdisplay,xscreen,0,0);
 
 
-		int border = (flags & FLAGS_BORDERLESS) ? 0 : CWBorderPixel;
-
 		window=XCreateWindow(
 		window=XCreateWindow(
 			xdisplay,
 			xdisplay,
 			RootWindow(xdisplay,xscreen),
 			RootWindow(xdisplay,xscreen),