mirror of
https://git.code.sf.net/p/quake/newtree
synced 2025-05-31 17:21:46 +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)) {
|
if (!XF86DGAQueryDirectVideo (dpy, DefaultScreen (dpy), &dgafeat)) {
|
||||||
*hasvideo = 0;
|
*hasvideo = 0;
|
||||||
} else {
|
} else {
|
||||||
*hasvideo = (dgafeat & XF86DGADirectPresent);
|
*hasvideo = (dgafeat & XF86DGADirectGraphics);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!(dgafeat & (XF86DGADirectPresent | XF86DGADirectMouse))) {
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|
|
@ -483,8 +483,8 @@ IN_Shutdown (void)
|
||||||
XAutoRepeatOn (x_disp);
|
XAutoRepeatOn (x_disp);
|
||||||
|
|
||||||
#ifdef HAVE_DGA
|
#ifdef HAVE_DGA
|
||||||
if (dga_avail)
|
if (dga_avail)
|
||||||
XF86DGADirectVideo (x_disp, DefaultScreen (x_disp), 0);
|
XF86DGADirectVideo (x_disp, DefaultScreen (x_disp), 0);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
x11_close_display ();
|
x11_close_display ();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue