Mercurial > sdl-ios-xcode
diff src/video/macrom/SDL_romvideo.c @ 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 | 70dac8976f94 |
children | a1b03ba2fcd0 |
line wrap: on
line diff
--- a/src/video/macrom/SDL_romvideo.c Fri Jun 15 05:41:22 2007 +0000 +++ b/src/video/macrom/SDL_romvideo.c Fri Jun 15 06:29:52 2007 +0000 @@ -158,6 +158,10 @@ device->UnlockHWSurface = ROM_UnlockHWSurface; device->FlipHWSurface = NULL; device->FreeHWSurface = ROM_FreeHWSurface; +#if SDL_MACCLASSIC_GAMMA_SUPPORT + device->SetGammaRamp = Mac_SetGammaRamp; + device->GetGammaRamp = Mac_GetGammaRamp; +#endif #if SDL_VIDEO_OPENGL device->GL_MakeCurrent = Mac_GL_MakeCurrent; device->GL_SwapBuffers = Mac_GL_SwapBuffers; @@ -725,6 +729,10 @@ } RestoreDeviceClut(GetMainDevice()); +#if SDL_MACCLASSIC_GAMMA_SUPPORT + Mac_QuitGamma(this); +#endif + /* Free list of video modes */ if ( SDL_modelist != NULL ) { for ( i=0; SDL_modelist[i]; ++i ) {