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:
Bill Currie 2001-02-09 22:24:44 +00:00
parent 5fe2ff158d
commit f59aa3034c
2 changed files with 7 additions and 3 deletions

View File

@ -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;

View File

@ -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 ();