comparison 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
comparison
equal deleted inserted replaced
3961:4b093ecae4a7 3962:7cdb1d7fc93b
24 #include "../macrom/SDL_romvideo.h" 24 #include "../macrom/SDL_romvideo.h"
25 25
26 /* Functions to be exported */ 26 /* Functions to be exported */
27 extern void Mac_SetCaption(_THIS, const char *title, const char *icon); 27 extern void Mac_SetCaption(_THIS, const char *title, const char *icon);
28 28
29 /*
30 * There's no Carbonized gamma support in Mac OS X, since PBStatusSync() and
31 * Control() aren't supported in OS X's Carbonlib. Use the Quartz driver
32 * instead.
33 */
34 #define SDL_MACCLASSIC_GAMMA_SUPPORT ((defined(__APPLE__) && defined(__MACH__)) == 0)
35
36 #if SDL_MACCLASSIC_GAMMA_SUPPORT
37 extern void Mac_QuitGamma(_THIS);
38 extern int Mac_SetGammaRamp(_THIS, Uint16 *ramp);
39 extern int Mac_GetGammaRamp(_THIS, Uint16 *ramp);
40 #endif
41