Code cleanup now that SDL_bool is equivalent to a C boolean expression
This commit is contained in:
parent
a76d8e39aa
commit
f3261fedcc
53 changed files with 133 additions and 138 deletions
|
@ -293,7 +293,7 @@ static void Emscripten_SetWindowFullscreen(SDL_VideoDevice *_this, SDL_Window *w
|
|||
|
||||
if (fullscreen) {
|
||||
EmscriptenFullscreenStrategy strategy;
|
||||
SDL_bool is_fullscreen_desktop = window->fullscreen_exclusive ? SDL_FALSE : SDL_TRUE;
|
||||
SDL_bool is_fullscreen_desktop = !window->fullscreen_exclusive;
|
||||
int res;
|
||||
|
||||
strategy.scaleMode = is_fullscreen_desktop ? EMSCRIPTEN_FULLSCREEN_SCALE_STRETCH : EMSCRIPTEN_FULLSCREEN_SCALE_ASPECT;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue