mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-05 19:08:12 +00:00
Emscripten_SetWindowFullscreen: Fix crash due to uninitialized EmscriptenFullscreenStrategy members
This commit is contained in:
@@ -299,6 +299,7 @@ static int Emscripten_SetWindowFullscreen(SDL_VideoDevice *_this, SDL_Window *wi
|
||||
EmscriptenFullscreenStrategy strategy;
|
||||
SDL_bool is_fullscreen_desktop = !window->fullscreen_exclusive;
|
||||
|
||||
SDL_zero(strategy);
|
||||
strategy.scaleMode = is_fullscreen_desktop ? EMSCRIPTEN_FULLSCREEN_SCALE_STRETCH : EMSCRIPTEN_FULLSCREEN_SCALE_ASPECT;
|
||||
|
||||
if (!is_fullscreen_desktop) {
|
||||
|
Reference in New Issue
Block a user