More Display checks

This commit is contained in:
Elias Naur 2003-05-30 14:44:45 +00:00
parent 66a2676652
commit e66f5dee8a
1 changed files with 6 additions and 1 deletions

View File

@ -68,7 +68,12 @@ static bool getVidModeExtensionVersion(Display *disp, int screen, int *major, in
#endif
return false;
}
XF86VidModeQueryVersion(disp, major, minor);
if (!XF86VidModeQueryVersion(disp, major, minor)) {
#ifdef _DEBUG
printf("Could not determine XF86VidMode version\n");
#endif
return false;
}
#ifdef _DEBUG
printf("XF86VidMode extension version %i.%i\n", major, minor);
#endif