makeDIB: Initialize palette with all black (SDL1 compat)

This commit is contained in:
kichikuou
2017-02-20 22:52:44 +09:00
parent be94461eef
commit e2bef80d88
-2
View File
@@ -118,11 +118,9 @@ static void makeDIB(int width, int height, int depth) {
sdl_dib = SDL_CreateRGBSurface(0, width, height, depth, 0, 0, 0, 0);
#if 0
if (sdl_dib->format->BitsPerPixel == 8) {
memset(sdl_dib->format->palette->colors, 0, sizeof(SDL_Color)*256);
}
#endif
#if 0
printf("DIB depth %d\n", sdl_dib->format->BitsPerPixel);