Fixed using the video mode extension on older servers

This commit is contained in:
Sam Lantinga
2001-07-11 20:18:52 +00:00
parent cc8ea47fa6
commit 1a90a84b31
2 changed files with 2 additions and 2 deletions

View File

@@ -37,7 +37,7 @@ static char rcsid =
static int X11_SetGammaNoLock(_THIS, float red, float green, float blue)
{
#ifdef XFREE86_VMGAMMA
if (use_vidmode >= 2) {
if (use_vidmode >= 200) {
XF86VidModeGamma gamma;
Bool succeeded;

View File

@@ -271,7 +271,7 @@ int X11_GetVideoModes(_THIS)
}
XFree(modes);
use_vidmode = vm_major;
use_vidmode = vm_major * 100 + vm_minor;
save_mode(this);
}
#endif /* XFREE86_VM */