diff src/video/x11/SDL_x11gamma.c @ 292:eadc0746dfaf

Added SDL_LockRect() and SDL_UnlockRect() Incorporated XFree86 extension libraries into the source
author Sam Lantinga <slouken@libsdl.org>
date Tue, 05 Mar 2002 19:55:32 +0000
parents e8157fcb3114
children f6ffac90895c
line wrap: on
line diff
--- a/src/video/x11/SDL_x11gamma.c	Sat Mar 02 16:50:35 2002 +0000
+++ b/src/video/x11/SDL_x11gamma.c	Tue Mar 05 19:55:32 2002 +0000
@@ -38,7 +38,7 @@
 {
 #ifdef XFREE86_VMGAMMA
     if (use_vidmode >= 200) {
-        XF86VidModeGamma gamma;
+        SDL_NAME(XF86VidModeGamma) gamma;
         Bool succeeded;
 
 	/* Clamp the gamma values */
@@ -67,7 +67,7 @@
         	gamma.blue = blue;
 	}
         if ( SDL_GetAppState() & SDL_APPACTIVE ) {
-            succeeded = XVidMode(SetGamma, (SDL_Display, SDL_Screen, &gamma));
+            succeeded = SDL_NAME(XF86VidModeSetGamma)(SDL_Display, SDL_Screen, &gamma);
             XSync(SDL_Display, False);
         } else {
             gamma_saved[0] = gamma.red;
@@ -99,8 +99,8 @@
 {
 #ifdef XFREE86_VMGAMMA
     if (use_vidmode >= 2) {
-        XF86VidModeGamma gamma;
-        if (XVidMode(GetGamma, (SDL_Display, SDL_Screen, &gamma))) {
+        SDL_NAME(XF86VidModeGamma) gamma;
+        if (SDL_NAME(XF86VidModeGetGamma)(SDL_Display, SDL_Screen, &gamma)) {
             *red   = gamma.red;
             *green = gamma.green;
             *blue  = gamma.blue;