Fix a compiler warning

This commit is contained in:
kichikuou
2024-11-28 10:21:18 +09:00
parent 80988e52cf
commit 5ff7149dc1
+1 -1
View File
@@ -155,7 +155,7 @@ static void makeDIB(int width, int height, int depth) {
SDL_FreeSurface(sdl_dib);
}
uint32_t format;
uint32_t format = 0;
switch (depth) {
case 8:
format = SDL_PIXELFORMAT_INDEX8;