Skip to content

Commit

Permalink
Fixed video crash on older XFree86 servers
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Aug 18, 2002
1 parent fc5c72f commit a5348e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/video/x11/SDL_x11gamma.c
Expand Up @@ -98,7 +98,7 @@ int X11_SetVidModeGamma(_THIS, float red, float green, float blue)
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;
Expand Down

0 comments on commit a5348e6

Please sign in to comment.