[2/3] winex11: Check the right defines

André Hentschel nerv at dawncrow.de
Wed Aug 10 15:59:05 CDT 2011


(according to the function used inside the preprocessor checks)
---
 dlls/winex11.drv/xvidmode.c |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/dlls/winex11.drv/xvidmode.c b/dlls/winex11.drv/xvidmode.c
index c09fe39..f866176 100644
--- a/dlls/winex11.drv/xvidmode.c
+++ b/dlls/winex11.drv/xvidmode.c
@@ -211,7 +211,7 @@ void X11DRV_XF86VM_Init(void)
   }
   if (ok)
   {
-#ifdef X_XF86VidModeSetGammaRamp
+#ifdef X_XF86VidModeGetGammaRampSize
       if (xf86vm_major > 2 || (xf86vm_major == 2 && xf86vm_minor >= 1))
       {
           pXF86VidModeGetGammaRampSize(gdi_display, DefaultScreen(gdi_display),
@@ -219,7 +219,7 @@ void X11DRV_XF86VM_Init(void)
           if (xf86vm_gammaramp_size == 256)
               xf86vm_use_gammaramp = TRUE;
       }
-#endif /* X_XF86VidModeSetGammaRamp */
+#endif /* X_XF86VidModeGetGammaRampSize */
 
       /* retrieve modes */
       if (usexvidmode && root_window == DefaultRootWindow( gdi_display ))
@@ -352,12 +352,12 @@ static BOOL ComputeGammaFromRamp(WORD ramp[256], float *gamma)
 
 static BOOL X11DRV_XF86VM_GetGammaRamp(LPDDGAMMARAMP ramp)
 {
-#ifdef X_XF86VidModeSetGamma
+#ifdef X_XF86VidModeGetGamma
   XF86VidModeGamma gamma;
   Bool ret;
 
   if (xf86vm_major < 2) return FALSE; /* no gamma control */
-#ifdef X_XF86VidModeSetGammaRamp
+#ifdef X_XF86VidModeGetGammaRamp
   else if (xf86vm_use_gammaramp)
   {
       Bool ret;
@@ -380,7 +380,7 @@ static BOOL X11DRV_XF86VM_GetGammaRamp(LPDDGAMMARAMP ramp)
 	  return TRUE;
       }
   }
-#endif /* X_XF86VidModeSetGamma */
+#endif /* X_XF86VidModeGetGamma */
   return FALSE;
 }
 
-- 

Best Regards, André Hentschel



More information about the wine-patches mailing list