src/video/xbios/SDL_xbios.c
changeset 1084 b0887c870403
parent 1071 24470ffe8ee4
child 1085 49d154d0c56e
--- a/src/video/xbios/SDL_xbios.c	Wed Jun 29 20:38:56 2005 +0000
+++ b/src/video/xbios/SDL_xbios.c	Thu Jun 30 08:20:53 2005 +0000
@@ -822,7 +822,7 @@
 				v = colors[i].g;
 				b = colors[i].b;
 					
-				TT_palette[i]=((r>>4)<<8)|((v>>4)<<4)|(b>>4);
+				TT_palette[firstcolor+i]=((r>>4)<<8)|((v>>4)<<4)|(b>>4);
 			}
 #ifndef DEBUG_VIDEO_XBIOS
 			EsetPalette(firstcolor,ncolors,TT_palette);
@@ -835,7 +835,7 @@
 				v = colors[i].g;
 				b = colors[i].b;
 
-				F30_palette[i]=(r<<16)|(v<<8)|b;
+				F30_palette[firstcolor+i]=(r<<16)|(v<<8)|b;
 			}
 #ifndef DEBUG_VIDEO_XBIOS
 			VsetRGB(firstcolor,ncolors,F30_palette);