mirror of
https://github.com/yawut/SDL.git
synced 2026-09-07 16:45:57 -05:00
Set hardware palette to black in True Colour mode
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user