# HG changeset patch # User Patrice Mandin # Date 1121694177 0 # Node ID 5012b97142acd74948d561bb32f26f63c4e7e1b3 # Parent d00b4d8508aba3cf81a16511b441c81a362fcb56 Set hardware palette to black in True Colour mode diff -r d00b4d8508ab -r 5012b97142ac src/video/xbios/SDL_xbios.c --- a/src/video/xbios/SDL_xbios.c Sun Jul 17 07:11:43 2005 +0000 +++ b/src/video/xbios/SDL_xbios.c Mon Jul 18 13:42:57 2005 +0000 @@ -681,6 +681,11 @@ 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; }