From 0c4b20d2fd4716b9fe47b97c9df7a98c3a22fd8d Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Wed, 11 Jul 2001 20:18:52 +0000 Subject: [PATCH] Fixed using the video mode extension on older servers --- src/video/x11/SDL_x11gamma.c | 2 +- src/video/x11/SDL_x11modes.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/video/x11/SDL_x11gamma.c b/src/video/x11/SDL_x11gamma.c index b28794890..cfaf878d6 100644 --- a/src/video/x11/SDL_x11gamma.c +++ b/src/video/x11/SDL_x11gamma.c @@ -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; diff --git a/src/video/x11/SDL_x11modes.c b/src/video/x11/SDL_x11modes.c index 08e035f29..c833e99d2 100644 --- a/src/video/x11/SDL_x11modes.c +++ b/src/video/x11/SDL_x11modes.c @@ -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 */