Commit a169a6c3 authored by Sam Lantinga's avatar Sam Lantinga

Fixed using the video mode extension on older servers

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40101
parent 49aa27fd
...@@ -37,7 +37,7 @@ static char rcsid = ...@@ -37,7 +37,7 @@ static char rcsid =
static int X11_SetGammaNoLock(_THIS, float red, float green, float blue) static int X11_SetGammaNoLock(_THIS, float red, float green, float blue)
{ {
#ifdef XFREE86_VMGAMMA #ifdef XFREE86_VMGAMMA
if (use_vidmode >= 2) { if (use_vidmode >= 200) {
XF86VidModeGamma gamma; XF86VidModeGamma gamma;
Bool succeeded; Bool succeeded;
......
...@@ -271,7 +271,7 @@ int X11_GetVideoModes(_THIS) ...@@ -271,7 +271,7 @@ int X11_GetVideoModes(_THIS)
} }
XFree(modes); XFree(modes);
use_vidmode = vm_major; use_vidmode = vm_major * 100 + vm_minor;
save_mode(this); save_mode(this);
} }
#endif /* XFREE86_VM */ #endif /* XFREE86_VM */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment