mirror of https://github.com/libsdl-org/SDL.git
wayland: Fix enum/boolean comparison and assignment
This commit is contained in:
parent
597bfe6b27
commit
f2866418d4
|
|
@ -2299,8 +2299,8 @@ SDL_FullscreenResult Wayland_SetWindowFullscreen(SDL_VideoDevice *_this, SDL_Win
|
|||
}
|
||||
|
||||
// Don't send redundant fullscreen set/unset events.
|
||||
if (fullscreen != wind->is_fullscreen) {
|
||||
wind->fullscreen_was_positioned = fullscreen;
|
||||
if (!!fullscreen != wind->is_fullscreen) {
|
||||
wind->fullscreen_was_positioned = !!fullscreen;
|
||||
SetFullscreen(window, fullscreen ? output : NULL);
|
||||
} else if (wind->is_fullscreen) {
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in New Issue