changeset 1084:b0887c870403

Was not using firstcolor parameter
author Patrice Mandin <patmandin@gmail.com>
date Thu, 30 Jun 2005 08:20:53 +0000
parents 9f8aa754622b
children 49d154d0c56e
files src/video/xbios/SDL_xbios.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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);