This commit is contained in:
Igor Stepanov 2025-10-07 16:43:32 +03:00
parent 13ae4ede72
commit f8302a42d0

View file

@ -314,7 +314,7 @@ void window_sdl::setCursor(CursorShape shape) {
} }
void window_sdl::toggleFullscreen() { void window_sdl::toggleFullscreen() {
fullscreen = !fullscreen; fullscreen = !fullscreen;
if (SDL_SetWindowFullscreen(window, fullscreen)) { if (!SDL_SetWindowFullscreen(window, fullscreen)) {
logger.error() << "Cant toggle fullscreen window: " << SDL_GetError(); logger.error() << "Cant toggle fullscreen window: " << SDL_GetError();
} }
} }