From ef4847a370d3d2a772d38c3f1a378c3e9b90fe1c Mon Sep 17 00:00:00 2001 From: Patrice Mandin Date: Mon, 18 Jul 2005 13:42:57 +0000 Subject: [PATCH] Set hardware palette to black in True Colour mode --- src/video/xbios/SDL_xbios.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/video/xbios/SDL_xbios.c b/src/video/xbios/SDL_xbios.c index 6985de5fc..640e09fd1 100644 --- a/src/video/xbios/SDL_xbios.c +++ b/src/video/xbios/SDL_xbios.c @@ -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; }