Mercurial > sdl-ios-xcode
diff src/video/xbios/SDL_xbios.c @ 1084:b0887c870403
Was not using firstcolor parameter
author | Patrice Mandin <patmandin@gmail.com> |
---|---|
date | Thu, 30 Jun 2005 08:20:53 +0000 |
parents | 24470ffe8ee4 |
children | 49d154d0c56e |
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);