mirror of https://git.code.sf.net/p/quake/newtree
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
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue