winex11.drv: Don't set gamma when UseXVidMode is turned off.

oldstable
Vincent Povirk 2011-08-02 15:28:36 -05:00 committed by Alexandre Julliard
parent 1c2f066f86
commit 62802b8bdf
1 changed files with 1 additions and 1 deletions

View File

@ -389,7 +389,7 @@ static BOOL X11DRV_XF86VM_SetGammaRamp(LPDDGAMMARAMP ramp)
#ifdef X_XF86VidModeSetGamma
XF86VidModeGamma gamma;
if (xf86vm_major < 2) return FALSE; /* no gamma control */
if (xf86vm_major < 2 || !usexvidmode) return FALSE; /* no gamma control */
#ifdef X_XF86VidModeSetGammaRamp
else if (xf86vm_use_gammaramp)
{