Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Was not using firstcolor parameter
  • Loading branch information
pmandin committed Jun 30, 2005
1 parent 6f0dd59 commit 9dd0729
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/video/xbios/SDL_xbios.c
Expand Up @@ -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);
Expand All @@ -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);
Expand Down

0 comments on commit 9dd0729

Please sign in to comment.