comparison src/video/xbios/SDL_xbios.c @ 508:9ff7e90aaa94

Fixed gamma correction in Atari video drivers (thanks Patrice!)
author Sam Lantinga <slouken@libsdl.org>
date Sat, 05 Oct 2002 16:27:56 +0000
parents 189a6a3416c7
children 0ce5a68278fd
comparison
equal deleted inserted replaced
507:7853b6af5957 508:9ff7e90aaa94
452 if ( SDL_modelist[bpp][mode] == NULL ) { 452 if ( SDL_modelist[bpp][mode] == NULL ) {
453 SDL_SetError("Couldn't find requested mode in list"); 453 SDL_SetError("Couldn't find requested mode in list");
454 return(NULL); 454 return(NULL);
455 } 455 }
456 456
457 modeflags = (SDL_FULLSCREEN|SDL_HWPALETTE); 457 modeflags = SDL_FULLSCREEN;
458 458
459 /* Allocate needed buffers: simple/double buffer and shadow surface */ 459 /* Allocate needed buffers: simple/double buffer and shadow surface */
460 new_video_mode = XBIOS_videomodes[bpp][mode]; 460 new_video_mode = XBIOS_videomodes[bpp][mode];
461 new_depth = new_video_mode->depth; 461 new_depth = new_video_mode->depth;
462 if (new_depth == 4) { 462 if (new_depth == 4) {
473 if (atari_cpu060_avail) { 473 if (atari_cpu060_avail) {
474 Atari_C2pConvert = Atari_C2pConvert8_060; 474 Atari_C2pConvert = Atari_C2pConvert8_060;
475 } else { 475 } else {
476 Atari_C2pConvert = Atari_C2pConvert8; 476 Atari_C2pConvert = Atari_C2pConvert8;
477 } 477 }
478 modeflags |= SDL_SWSURFACE; 478 modeflags |= SDL_SWSURFACE|SDL_HWPALETTE;
479 } else { 479 } else {
480 modeflags |= SDL_HWSURFACE; 480 modeflags |= SDL_HWSURFACE;
481 } 481 }
482 482
483 new_screen_size = width * height * ((new_depth)>>3); 483 new_screen_size = width * height * ((new_depth)>>3);