Set hardware palette to black in True Colour mode
--HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401095
This commit is contained in:
parent
196a420886
commit
6ebd3d9b2f
1 changed files with 5 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue