diff src/video/xbios/SDL_xbios.c @ 1094:5012b97142ac

Set hardware palette to black in True Colour mode
author Patrice Mandin <patmandin@gmail.com>
date Mon, 18 Jul 2005 13:42:57 +0000
parents 49d154d0c56e
children c8a51d169579
line wrap: on
line diff
--- 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;
 	}