diff src/video/x11/SDL_x11gamma.c @ 1361:19418e4422cb

New configure-based build system. Still work in progress, but much improved
author Sam Lantinga <slouken@libsdl.org>
date Thu, 16 Feb 2006 10:11:48 +0000
parents c9b51268668f
children d910939febfa
line wrap: on
line diff
--- a/src/video/x11/SDL_x11gamma.c	Fri Feb 10 07:29:08 2006 +0000
+++ b/src/video/x11/SDL_x11gamma.c	Thu Feb 16 10:11:48 2006 +0000
@@ -22,7 +22,7 @@
 
 #include "SDL.h"
 #include "SDL_events.h"
-#include "SDL_events_c.h"
+#include "../../events/SDL_events_c.h"
 #include "SDL_x11video.h"
 
 /* From the X server sources... */
@@ -31,7 +31,7 @@
 
 static int X11_SetGammaNoLock(_THIS, float red, float green, float blue)
 {
-#ifdef XFREE86_VMGAMMA
+#if SDL_VIDEO_DRIVER_X11_VIDMODE
     if (use_vidmode >= 200) {
         SDL_NAME(XF86VidModeGamma) gamma;
         Bool succeeded;
@@ -92,7 +92,7 @@
 
 static int X11_GetGammaNoLock(_THIS, float *red, float *green, float *blue)
 {
-#ifdef XFREE86_VMGAMMA
+#if SDL_VIDEO_DRIVER_X11_VIDMODE
     if (use_vidmode >= 200) {
         SDL_NAME(XF86VidModeGamma) gamma;
         if (SDL_NAME(XF86VidModeGetGamma)(SDL_Display, SDL_Screen, &gamma)) {