src/video/xbios/SDL_xbios.c
changeset 1094 5012b97142ac
parent 1085 49d154d0c56e
child 1101 c8a51d169579
equal deleted inserted replaced
1093:d00b4d8508ab 1094:5012b97142ac
   679 				SDL_XBIOS_CentscreenSetmode(this, width, height, new_depth);
   679 				SDL_XBIOS_CentscreenSetmode(this, width, height, new_depth);
   680 			} else {
   680 			} else {
   681 				Vsetmode(new_video_mode->number);
   681 				Vsetmode(new_video_mode->number);
   682 			}
   682 			}
   683 #endif
   683 #endif
       
   684 			/* Set hardware palette to black in True Colour */
       
   685 			if (new_depth == 16) {
       
   686 				memset(F30_palette, 0, sizeof(F30_palette));
       
   687 				VsetRGB(0,256,F30_palette);
       
   688 			}
   684 			break;
   689 			break;
   685 	}
   690 	}
   686 
   691 
   687 	Vsync();
   692 	Vsync();
   688 
   693