comparison 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
comparison
equal deleted inserted replaced
3961:4b093ecae4a7 3962:7cdb1d7fc93b
156 device->SetHWAlpha = NULL; 156 device->SetHWAlpha = NULL;
157 device->LockHWSurface = ROM_LockHWSurface; 157 device->LockHWSurface = ROM_LockHWSurface;
158 device->UnlockHWSurface = ROM_UnlockHWSurface; 158 device->UnlockHWSurface = ROM_UnlockHWSurface;
159 device->FlipHWSurface = NULL; 159 device->FlipHWSurface = NULL;
160 device->FreeHWSurface = ROM_FreeHWSurface; 160 device->FreeHWSurface = ROM_FreeHWSurface;
161 #if SDL_MACCLASSIC_GAMMA_SUPPORT
162 device->SetGammaRamp = Mac_SetGammaRamp;
163 device->GetGammaRamp = Mac_GetGammaRamp;
164 #endif
161 #if SDL_VIDEO_OPENGL 165 #if SDL_VIDEO_OPENGL
162 device->GL_MakeCurrent = Mac_GL_MakeCurrent; 166 device->GL_MakeCurrent = Mac_GL_MakeCurrent;
163 device->GL_SwapBuffers = Mac_GL_SwapBuffers; 167 device->GL_SwapBuffers = Mac_GL_SwapBuffers;
164 device->GL_LoadLibrary = Mac_GL_LoadLibrary; 168 device->GL_LoadLibrary = Mac_GL_LoadLibrary;
165 device->GL_GetProcAddress = Mac_GL_GetProcAddress; 169 device->GL_GetProcAddress = Mac_GL_GetProcAddress;
723 DisposePalette(SDL_CPal); 727 DisposePalette(SDL_CPal);
724 SDL_CPal = nil; 728 SDL_CPal = nil;
725 } 729 }
726 RestoreDeviceClut(GetMainDevice()); 730 RestoreDeviceClut(GetMainDevice());
727 731
732 #if SDL_MACCLASSIC_GAMMA_SUPPORT
733 Mac_QuitGamma(this);
734 #endif
735
728 /* Free list of video modes */ 736 /* Free list of video modes */
729 if ( SDL_modelist != NULL ) { 737 if ( SDL_modelist != NULL ) {
730 for ( i=0; SDL_modelist[i]; ++i ) { 738 for ( i=0; SDL_modelist[i]; ++i ) {
731 SDL_free(SDL_modelist[i]); 739 SDL_free(SDL_modelist[i]);
732 } 740 }