mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2024-11-10 07:21:58 +00:00
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:
parent
f88bdb7d0b
commit
9fc38410dd
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue