# HG changeset patch # User Patrice Mandin # Date 1120119653 0 # Node ID b0887c8704033c558c768680be259337c41f83da # Parent 9f8aa754622b19187a9daafacdbdc8a44b0c76d4 Was not using firstcolor parameter diff -r 9f8aa754622b -r b0887c870403 src/video/xbios/SDL_xbios.c --- 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);