changeset 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 d00b4d8508ab
children f10892fa2e48
files src/video/xbios/SDL_xbios.c
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
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;
 	}