From 6ebd3d9b2f38fe12c709d318f72f580fcb5ea407 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 --HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401095 --- 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; }