mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2024-12-29 20:27:12 +01:00
Static analysis fix: uninitialized data.
(This is Clang not knowing that SDL_SetError() always returns -1.)
This commit is contained in:
parent
d7a253b5ec
commit
3aae0ed2c5
@ -1128,6 +1128,8 @@ SDL_UpdateFullscreenMode(SDL_Window * window, SDL_bool fullscreen)
|
|||||||
if (setDisplayMode) {
|
if (setDisplayMode) {
|
||||||
SDL_DisplayMode fullscreen_mode;
|
SDL_DisplayMode fullscreen_mode;
|
||||||
|
|
||||||
|
SDL_zero(fullscreen_mode);
|
||||||
|
|
||||||
if (SDL_GetWindowDisplayMode(other, &fullscreen_mode) == 0) {
|
if (SDL_GetWindowDisplayMode(other, &fullscreen_mode) == 0) {
|
||||||
SDL_bool resized = SDL_TRUE;
|
SDL_bool resized = SDL_TRUE;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user