comparison src/video/macdsp/SDL_dspvideo.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 ab8297bf3768
children a1b03ba2fcd0
comparison
equal deleted inserted replaced
3961:4b093ecae4a7 3962:7cdb1d7fc93b
295 device->SetHWAlpha = NULL; 295 device->SetHWAlpha = NULL;
296 device->LockHWSurface = DSp_LockHWSurface; 296 device->LockHWSurface = DSp_LockHWSurface;
297 device->UnlockHWSurface = DSp_UnlockHWSurface; 297 device->UnlockHWSurface = DSp_UnlockHWSurface;
298 device->FlipHWSurface = DSp_FlipHWSurface; 298 device->FlipHWSurface = DSp_FlipHWSurface;
299 device->FreeHWSurface = DSp_FreeHWSurface; 299 device->FreeHWSurface = DSp_FreeHWSurface;
300 #if SDL_MACCLASSIC_GAMMA_SUPPORT
301 device->SetGammaRamp = Mac_SetGammaRamp;
302 device->GetGammaRamp = Mac_GetGammaRamp;
303 #endif
300 #if SDL_VIDEO_OPENGL 304 #if SDL_VIDEO_OPENGL
301 device->GL_MakeCurrent = Mac_GL_MakeCurrent; 305 device->GL_MakeCurrent = Mac_GL_MakeCurrent;
302 device->GL_SwapBuffers = DSp_GL_SwapBuffers; 306 device->GL_SwapBuffers = DSp_GL_SwapBuffers;
303 device->GL_LoadLibrary = Mac_GL_LoadLibrary; 307 device->GL_LoadLibrary = Mac_GL_LoadLibrary;
304 device->GL_GetProcAddress = Mac_GL_GetProcAddress; 308 device->GL_GetProcAddress = Mac_GL_GetProcAddress;
1379 DSp_UnsetVideoMode(this, this->screen); 1383 DSp_UnsetVideoMode(this, this->screen);
1380 1384
1381 /* Free Palette and restore original */ 1385 /* Free Palette and restore original */
1382 DSp_DestroyPalette (this); 1386 DSp_DestroyPalette (this);
1383 1387
1388 #if SDL_MACCLASSIC_GAMMA_SUPPORT
1389 Mac_QuitGamma(this);
1390 #endif
1391
1384 /* Free list of video modes */ 1392 /* Free list of video modes */
1385 if ( SDL_modelist != NULL ) { 1393 if ( SDL_modelist != NULL ) {
1386 for ( i=0; SDL_modelist[i]; i++ ) { 1394 for ( i=0; SDL_modelist[i]; i++ ) {
1387 SDL_free(SDL_modelist[i]); 1395 SDL_free(SDL_modelist[i]);
1388 } 1396 }