diff src/video/maccommon/SDL_macwm_c.h @ 3962:7cdb1d7fc93b SDL-1.2

Support for Gamma Ramps on Mac OS Classic in both the macrom and macdsp video targets, thanks to Gregory Smith! Fixes Bugzilla #431.
author Ryan C. Gordon <icculus@icculus.org>
date Fri, 15 Jun 2007 06:29:52 +0000
parents 7a610f25c12f
children a1b03ba2fcd0
line wrap: on
line diff
--- a/src/video/maccommon/SDL_macwm_c.h	Fri Jun 15 05:41:22 2007 +0000
+++ b/src/video/maccommon/SDL_macwm_c.h	Fri Jun 15 06:29:52 2007 +0000
@@ -26,3 +26,16 @@
 /* Functions to be exported */
 extern void Mac_SetCaption(_THIS, const char *title, const char *icon);
 
+/*
+ * There's no Carbonized gamma support in Mac OS X, since PBStatusSync() and
+ *  Control() aren't supported in OS X's Carbonlib. Use the Quartz driver
+ *  instead.
+ */
+#define SDL_MACCLASSIC_GAMMA_SUPPORT ((defined(__APPLE__) && defined(__MACH__)) == 0)
+
+#if SDL_MACCLASSIC_GAMMA_SUPPORT
+extern void Mac_QuitGamma(_THIS);
+extern int Mac_SetGammaRamp(_THIS, Uint16 *ramp);
+extern int Mac_GetGammaRamp(_THIS, Uint16 *ramp);
+#endif
+