From e2bef80d882ce702ca8c78e460622f4685ff6144 Mon Sep 17 00:00:00 2001 From: kichikuou Date: Mon, 20 Feb 2017 22:52:44 +0900 Subject: [PATCH] makeDIB: Initialize palette with all black (SDL1 compat) --- src/sdl_video.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/sdl_video.c b/src/sdl_video.c index b0376dd..261cbd2 100644 --- a/src/sdl_video.c +++ b/src/sdl_video.c @@ -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);