Was not using firstcolor parameter
--HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401085
This commit is contained in:
parent
7425c511cd
commit
d2b5ec924e
1 changed files with 2 additions and 2 deletions
|
@ -822,7 +822,7 @@ static int XBIOS_SetColors(_THIS, int firstcolor, int ncolors, SDL_Color *colors
|
||||||
v = colors[i].g;
|
v = colors[i].g;
|
||||||
b = colors[i].b;
|
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
|
#ifndef DEBUG_VIDEO_XBIOS
|
||||||
EsetPalette(firstcolor,ncolors,TT_palette);
|
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;
|
v = colors[i].g;
|
||||||
b = colors[i].b;
|
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
|
#ifndef DEBUG_VIDEO_XBIOS
|
||||||
VsetRGB(firstcolor,ncolors,F30_palette);
|
VsetRGB(firstcolor,ncolors,F30_palette);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue