mirror of
https://git.code.sf.net/p/quake/newtree
synced 2024-11-10 14:52:08 +00:00
dga_check.c:
fix dga checking. just because the dga queries succeed doesn't mean it's actually there. in_x11.c: whitespace
This commit is contained in:
parent
5fe2ff158d
commit
f59aa3034c
2 changed files with 7 additions and 3 deletions
|
@ -79,7 +79,11 @@ VID_CheckDGA (Display * dpy, int *maj_ver, int *min_ver, int *hasvideo)
|
|||
if (!XF86DGAQueryDirectVideo (dpy, DefaultScreen (dpy), &dgafeat)) {
|
||||
*hasvideo = 0;
|
||||
} else {
|
||||
*hasvideo = (dgafeat & XF86DGADirectPresent);
|
||||
*hasvideo = (dgafeat & XF86DGADirectGraphics);
|
||||
}
|
||||
|
||||
if (!(dgafeat & (XF86DGADirectPresent | XF86DGADirectMouse))) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
|
|
|
@ -483,8 +483,8 @@ IN_Shutdown (void)
|
|||
XAutoRepeatOn (x_disp);
|
||||
|
||||
#ifdef HAVE_DGA
|
||||
if (dga_avail)
|
||||
XF86DGADirectVideo (x_disp, DefaultScreen (x_disp), 0);
|
||||
if (dga_avail)
|
||||
XF86DGADirectVideo (x_disp, DefaultScreen (x_disp), 0);
|
||||
#endif
|
||||
}
|
||||
x11_close_display ();
|
||||
|
|
Loading…
Reference in a new issue