From 9dd07294fd1b68304f048aec72d2792afe36bb06 Mon Sep 17 00:00:00 2001 From: Patrice Mandin Date: Thu, 30 Jun 2005 08:20:53 +0000 Subject: [PATCH] Was not using firstcolor parameter --- src/video/xbios/SDL_xbios.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/video/xbios/SDL_xbios.c b/src/video/xbios/SDL_xbios.c index a70b1dae8..89017b0a4 100644 --- a/src/video/xbios/SDL_xbios.c +++ b/src/video/xbios/SDL_xbios.c @@ -822,7 +822,7 @@ static int XBIOS_SetColors(_THIS, int firstcolor, int ncolors, SDL_Color *colors 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 @@ static int XBIOS_SetColors(_THIS, int firstcolor, int ncolors, SDL_Color *colors 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);