diff 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
line wrap: on
line diff
--- a/src/video/xbios/SDL_xbios.c	Thu Jul 21 22:21:51 2005 +0000
+++ b/src/video/xbios/SDL_xbios.c	Wed Jul 27 16:30:12 2005 +0000
@@ -844,7 +844,7 @@
 				v = colors[i].g;
 				b = colors[i].b;
 					
-				TT_palette[firstcolor+i]=((r>>4)<<8)|((v>>4)<<4)|(b>>4);
+				TT_palette[i]=((r>>4)<<8)|((v>>4)<<4)|(b>>4);
 			}
 #ifndef DEBUG_VIDEO_XBIOS
 			EsetPalette(firstcolor,ncolors,TT_palette);
@@ -857,7 +857,7 @@
 				v = colors[i].g;
 				b = colors[i].b;
 
-				F30_palette[firstcolor+i]=(r<<16)|(v<<8)|b;
+				F30_palette[i]=(r<<16)|(v<<8)|b;
 			}
 #ifndef DEBUG_VIDEO_XBIOS
 			VsetRGB(firstcolor,ncolors,F30_palette);