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)) {
|
||||
*hasvideo = 0;
|
||||
} else {
|
||||
*hasvideo = (dgafeat & XF86DGADirectPresent);
|
||||
*hasvideo = (dgafeat & XF86DGADirectGraphics);
|
||||
}
|
||||
|
||||
if (!(dgafeat & (XF86DGADirectPresent | XF86DGADirectMouse))) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue