VID_InitModelist (SDL-1.2): zero the whole format,

.. instead of only setting its palette fiel to NULL. This makes it work
with sdl12-compat (see: https://github.com/libsdl-org/sdl12-compat.git)
This commit is contained in:
Ozkan Sezer 2021-04-12 12:37:04 +03:00
parent f88bdb7d0b
commit 9fc38410dd

View file

@ -1517,7 +1517,7 @@ static void VID_InitModelist (void)
int bpps[] = {16, 24, 32}; // enumerate >8 bpp modes
originalnummodes = nummodes = 0;
format.palette = NULL;
memset(&format, 0, sizeof(format));
// enumerate fullscreen modes
flags = DEFAULT_SDL_FLAGS | SDL_FULLSCREEN;