comparison src/video/xbios/SDL_xbios.c @ 1102:f0919504adfd

Revert back change between 1.29 and 1.30
author Patrice Mandin <patmandin@gmail.com>
date Wed, 27 Jul 2005 16:30:12 +0000
parents c8a51d169579
children 18e5babe266e
comparison
equal deleted inserted replaced
1101:c8a51d169579 1102:f0919504adfd
842 { 842 {
843 r = colors[i].r; 843 r = colors[i].r;
844 v = colors[i].g; 844 v = colors[i].g;
845 b = colors[i].b; 845 b = colors[i].b;
846 846
847 TT_palette[firstcolor+i]=((r>>4)<<8)|((v>>4)<<4)|(b>>4); 847 TT_palette[i]=((r>>4)<<8)|((v>>4)<<4)|(b>>4);
848 } 848 }
849 #ifndef DEBUG_VIDEO_XBIOS 849 #ifndef DEBUG_VIDEO_XBIOS
850 EsetPalette(firstcolor,ncolors,TT_palette); 850 EsetPalette(firstcolor,ncolors,TT_palette);
851 #endif 851 #endif
852 break; 852 break;
855 { 855 {
856 r = colors[i].r; 856 r = colors[i].r;
857 v = colors[i].g; 857 v = colors[i].g;
858 b = colors[i].b; 858 b = colors[i].b;
859 859
860 F30_palette[firstcolor+i]=(r<<16)|(v<<8)|b; 860 F30_palette[i]=(r<<16)|(v<<8)|b;
861 } 861 }
862 #ifndef DEBUG_VIDEO_XBIOS 862 #ifndef DEBUG_VIDEO_XBIOS
863 VsetRGB(firstcolor,ncolors,F30_palette); 863 VsetRGB(firstcolor,ncolors,F30_palette);
864 #endif 864 #endif
865 break; 865 break;