Mercurial > sdl-ios-xcode
changeset 445:98d778ed4abf
Fixed video crash on older XFree86 servers
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sun, 18 Aug 2002 18:33:02 +0000 |
parents | 406b12a17b15 |
children | 92328a8635fe |
files | src/video/x11/SDL_x11gamma.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/video/x11/SDL_x11gamma.c Sun Aug 18 03:19:59 2002 +0000 +++ b/src/video/x11/SDL_x11gamma.c Sun Aug 18 18:33:02 2002 +0000 @@ -98,7 +98,7 @@ static int X11_GetGammaNoLock(_THIS, float *red, float *green, float *blue) { #ifdef XFREE86_VMGAMMA - if (use_vidmode >= 2) { + if (use_vidmode >= 200) { SDL_NAME(XF86VidModeGamma) gamma; if (SDL_NAME(XF86VidModeGetGamma)(SDL_Display, SDL_Screen, &gamma)) { *red = gamma.red;