mirror of
https://git.code.sf.net/p/quake/quake2forge
synced 2024-12-12 13:42:21 +00:00
Misc. cleanups.
This commit is contained in:
parent
89842bdf60
commit
9058b26f56
2 changed files with 10 additions and 8 deletions
|
@ -40,9 +40,9 @@ SVGALDFLAGS=-lvga
|
||||||
XLDFLAGS=-L/usr/X11R6/lib -lX11 -lXext
|
XLDFLAGS=-L/usr/X11R6/lib -lX11 -lXext
|
||||||
XCFLAGS=
|
XCFLAGS=
|
||||||
|
|
||||||
GLLDFLAGS=-L/usr/local/glide/lib -L/usr/X11R6/lib -L/usr/local/lib \
|
GLLDFLAGS=-L/usr/X11R6/lib -L/usr/local/lib \
|
||||||
-lGL -lX11 -lXext -lvga
|
-lGL -lX11 -lXext -lpthread
|
||||||
GLCFLAGS=-I/usr/local/src/Mesa-2.6/include -I/usr/local/glide/include
|
GLCFLAGS=
|
||||||
|
|
||||||
SHLIBEXT=so
|
SHLIBEXT=so
|
||||||
|
|
||||||
|
|
|
@ -44,6 +44,7 @@ static int StudlyRGBattributes[] =
|
||||||
GLX_GREEN_SIZE, 4,
|
GLX_GREEN_SIZE, 4,
|
||||||
GLX_BLUE_SIZE, 4,
|
GLX_BLUE_SIZE, 4,
|
||||||
GLX_DEPTH_SIZE, 1,
|
GLX_DEPTH_SIZE, 1,
|
||||||
|
// GLX_SAMPLES_SGIS, 4, /* for better AA */
|
||||||
None,
|
None,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -420,23 +421,25 @@ qboolean GLimp_InitGraphics( qboolean fullscreen )
|
||||||
|
|
||||||
// set window properties for full screen
|
// set window properties for full screen
|
||||||
if (fullscreen) {
|
if (fullscreen) {
|
||||||
//MotifWmHints wmhints;
|
// MotifWmHints wmhints;
|
||||||
//Atom aHints;
|
Atom aHints;
|
||||||
XSizeHints sizehints;
|
XSizeHints sizehints;
|
||||||
XWindowChanges changes;
|
XWindowChanges changes;
|
||||||
/*
|
|
||||||
aHints = XInternAtom( x_disp, "_MOTIF_WM_HINTS", 0 );
|
aHints = XInternAtom( x_disp, "_MOTIF_WM_HINTS", 0 );
|
||||||
if (aHints == None)
|
if (aHints == None)
|
||||||
{
|
{
|
||||||
ri.Con_Printf( PRINT_ALL, "Could not intern X atom for _MOTIF_WM_HINTS." );
|
ri.Con_Printf( PRINT_ALL, "Could not intern X atom for _MOTIF_WM_HINTS." );
|
||||||
// return( false );
|
/* return( false ); */
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
#if 0
|
||||||
wmhints.flags = MWM_HINTS_DECORATIONS;
|
wmhints.flags = MWM_HINTS_DECORATIONS;
|
||||||
wmhints.decorations = 0; // Absolutely no decorations.
|
wmhints.decorations = 0; // Absolutely no decorations.
|
||||||
XChangeProperty(x_disp, x_win, aHints, aHints, 32,
|
XChangeProperty(x_disp, x_win, aHints, aHints, 32,
|
||||||
PropModeReplace, (unsigned char *)&wmhints,
|
PropModeReplace, (unsigned char *)&wmhints,
|
||||||
4 );
|
4 );
|
||||||
|
#endif
|
||||||
|
|
||||||
sizehints.flags = USPosition | USSize;
|
sizehints.flags = USPosition | USSize;
|
||||||
sizehints.x = 0;
|
sizehints.x = 0;
|
||||||
|
@ -454,7 +457,6 @@ qboolean GLimp_InitGraphics( qboolean fullscreen )
|
||||||
CWX | CWY | CWWidth | CWHeight | CWStackMode,
|
CWX | CWY | CWWidth | CWHeight | CWStackMode,
|
||||||
&changes);
|
&changes);
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// map the window
|
// map the window
|
||||||
|
|
Loading…
Reference in a new issue