Was not using firstcolor parameter
authorPatrice Mandin <patmandin@gmail.com>
Thu, 30 Jun 2005 08:20:53 +0000
changeset 1084b0887c870403
parent 1083 9f8aa754622b
child 1085 49d154d0c56e
Was not using firstcolor parameter
src/video/xbios/SDL_xbios.c
     1.1 --- a/src/video/xbios/SDL_xbios.c	Wed Jun 29 20:38:56 2005 +0000
     1.2 +++ b/src/video/xbios/SDL_xbios.c	Thu Jun 30 08:20:53 2005 +0000
     1.3 @@ -822,7 +822,7 @@
     1.4  				v = colors[i].g;
     1.5  				b = colors[i].b;
     1.6  					
     1.7 -				TT_palette[i]=((r>>4)<<8)|((v>>4)<<4)|(b>>4);
     1.8 +				TT_palette[firstcolor+i]=((r>>4)<<8)|((v>>4)<<4)|(b>>4);
     1.9  			}
    1.10  #ifndef DEBUG_VIDEO_XBIOS
    1.11  			EsetPalette(firstcolor,ncolors,TT_palette);
    1.12 @@ -835,7 +835,7 @@
    1.13  				v = colors[i].g;
    1.14  				b = colors[i].b;
    1.15  
    1.16 -				F30_palette[i]=(r<<16)|(v<<8)|b;
    1.17 +				F30_palette[firstcolor+i]=(r<<16)|(v<<8)|b;
    1.18  			}
    1.19  #ifndef DEBUG_VIDEO_XBIOS
    1.20  			VsetRGB(firstcolor,ncolors,F30_palette);