src/video/xbios/SDL_xbios.c
changeset 1084 b0887c870403
parent 1071 24470ffe8ee4
child 1085 49d154d0c56e
equal deleted inserted replaced
1083:9f8aa754622b 1084:b0887c870403
   820 			{
   820 			{
   821 				r = colors[i].r;	
   821 				r = colors[i].r;	
   822 				v = colors[i].g;
   822 				v = colors[i].g;
   823 				b = colors[i].b;
   823 				b = colors[i].b;
   824 					
   824 					
   825 				TT_palette[i]=((r>>4)<<8)|((v>>4)<<4)|(b>>4);
   825 				TT_palette[firstcolor+i]=((r>>4)<<8)|((v>>4)<<4)|(b>>4);
   826 			}
   826 			}
   827 #ifndef DEBUG_VIDEO_XBIOS
   827 #ifndef DEBUG_VIDEO_XBIOS
   828 			EsetPalette(firstcolor,ncolors,TT_palette);
   828 			EsetPalette(firstcolor,ncolors,TT_palette);
   829 #endif
   829 #endif
   830 			break;
   830 			break;
   833 			{
   833 			{
   834 				r = colors[i].r;	
   834 				r = colors[i].r;	
   835 				v = colors[i].g;
   835 				v = colors[i].g;
   836 				b = colors[i].b;
   836 				b = colors[i].b;
   837 
   837 
   838 				F30_palette[i]=(r<<16)|(v<<8)|b;
   838 				F30_palette[firstcolor+i]=(r<<16)|(v<<8)|b;
   839 			}
   839 			}
   840 #ifndef DEBUG_VIDEO_XBIOS
   840 #ifndef DEBUG_VIDEO_XBIOS
   841 			VsetRGB(firstcolor,ncolors,F30_palette);
   841 			VsetRGB(firstcolor,ncolors,F30_palette);
   842 #endif
   842 #endif
   843 			break;
   843 			break;