mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-07 15:10:49 +00:00
OS2_VideoInit: zero the stSDLDisplay and stSDLDisplayMode variables
Fixes testdisplayinfo.exe crashing in SDL2-2.0.13. (How it did work before?..)
This commit is contained in:
parent
54ced668c4
commit
fba32ee21f
1 changed files with 2 additions and 0 deletions
|
|
@ -1555,6 +1555,8 @@ static int OS2_VideoInit(_THIS)
|
|||
return SDL_SetError( "Video mode query failed." );
|
||||
}
|
||||
|
||||
SDL_zero(stSDLDisplay); SDL_zero(stSDLDisplayMode);
|
||||
|
||||
stSDLDisplayMode.format = _getSDLPixelFormat( stVOInfo.ulBPP,
|
||||
stVOInfo.fccColorEncoding );
|
||||
stSDLDisplayMode.w = stVOInfo.ulHorizResolution;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue