diff src/video/x11/SDL_x11gamma.c @ 1168:045f186426e1

Dynamically load X11 libraries like we currently do for alsa, esd, etc. This allows you to run an SDL program on a system without Xlib, since it'll just report the x11 target unavailable at runtime.
author Ryan C. Gordon <icculus@icculus.org>
date Sat, 05 Nov 2005 19:53:37 +0000
parents b8d311d90021
children c9b51268668f
line wrap: on
line diff
--- a/src/video/x11/SDL_x11gamma.c	Sat Nov 05 17:41:11 2005 +0000
+++ b/src/video/x11/SDL_x11gamma.c	Sat Nov 05 19:53:37 2005 +0000
@@ -68,7 +68,7 @@
 	}
         if ( SDL_GetAppState() & SDL_APPACTIVE ) {
             succeeded = SDL_NAME(XF86VidModeSetGamma)(SDL_Display, SDL_Screen, &gamma);
-            XSync(SDL_Display, False);
+            pXSync(SDL_Display, False);
         } else {
             gamma_saved[0] = gamma.red;
             gamma_saved[1] = gamma.green;