mirror of https://github.com/libsdl-org/SDL.git
Emscripten_SetWindowFullscreen: Fix crash due to uninitialized EmscriptenFullscreenStrategy members
(cherry picked from commit7b74e2eeb8) (cherry picked from commitd2a3347c19)
This commit is contained in:
parent
d1b6d5f33d
commit
c0eedcd4ce
|
|
@ -342,6 +342,7 @@ static void Emscripten_SetWindowFullscreen(_THIS, SDL_Window *window, SDL_VideoD
|
|||
SDL_bool is_desktop_fullscreen = (window->flags & SDL_WINDOW_FULLSCREEN_DESKTOP) == SDL_WINDOW_FULLSCREEN_DESKTOP;
|
||||
int res;
|
||||
|
||||
SDL_zero(strategy);
|
||||
strategy.scaleMode = is_desktop_fullscreen ? EMSCRIPTEN_FULLSCREEN_SCALE_STRETCH : EMSCRIPTEN_FULLSCREEN_SCALE_ASPECT;
|
||||
|
||||
if (!is_desktop_fullscreen) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue