comparison src/video/xbios/SDL_xbios.c @ 1350:adc8ff3c9597

Fixes for new SDL embedded libc stuff
author Patrice Mandin <patmandin@gmail.com>
date Wed, 08 Feb 2006 18:59:49 +0000
parents 604d73db6802
children c71e05b4dc2e
comparison
equal deleted inserted replaced
1349:3f395c825b14 1350:adc8ff3c9597
670 case VDO_F30: 670 case VDO_F30:
671 #ifndef DEBUG_VIDEO_XBIOS 671 #ifndef DEBUG_VIDEO_XBIOS
672 if (XBIOS_centscreen) { 672 if (XBIOS_centscreen) {
673 SDL_XBIOS_CentscreenSetmode(this, width, height, new_depth); 673 SDL_XBIOS_CentscreenSetmode(this, width, height, new_depth);
674 } else { 674 } else {
675 Vsetmode(new_video_mode->number); 675 VsetMode(new_video_mode->number);
676 } 676 }
677 #endif 677 #endif
678 /* Set hardware palette to black in True Colour */ 678 /* Set hardware palette to black in True Colour */
679 if (new_depth == 16) { 679 if (new_depth == 16) {
680 SDL_memset(F30_palette, 0, sizeof(F30_palette)); 680 SDL_memset(F30_palette, 0, sizeof(F30_palette));
882 case VDO_F30: 882 case VDO_F30:
883 Setscreen(-1, XBIOS_oldvbase, -1); 883 Setscreen(-1, XBIOS_oldvbase, -1);
884 if (XBIOS_centscreen) { 884 if (XBIOS_centscreen) {
885 SDL_XBIOS_CentscreenRestore(this, XBIOS_oldvmode); 885 SDL_XBIOS_CentscreenRestore(this, XBIOS_oldvmode);
886 } else { 886 } else {
887 Vsetmode(XBIOS_oldvmode); 887 VsetMode(XBIOS_oldvmode);
888 } 888 }
889 if (XBIOS_oldnumcol) { 889 if (XBIOS_oldnumcol) {
890 VsetRGB(0, XBIOS_oldnumcol, XBIOS_oldpalette); 890 VsetRGB(0, XBIOS_oldnumcol, XBIOS_oldpalette);
891 } 891 }
892 break; 892 break;