Skip to content

Commit

Permalink
Set hardware palette to black in True Colour mode
Browse files Browse the repository at this point in the history
  • Loading branch information
pmandin committed Jul 18, 2005
1 parent b05392b commit 20fe8e6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/video/xbios/SDL_xbios.c
Expand Up @@ -681,6 +681,11 @@ static SDL_Surface *XBIOS_SetVideoMode(_THIS, SDL_Surface *current,
Vsetmode(new_video_mode->number);
}
#endif
/* Set hardware palette to black in True Colour */
if (new_depth == 16) {
memset(F30_palette, 0, sizeof(F30_palette));
VsetRGB(0,256,F30_palette);
}
break;
}

Expand Down

0 comments on commit 20fe8e6

Please sign in to comment.