From 9da0ae101693fb281b1ecdee8fa3eaf9920b9fc9 Mon Sep 17 00:00:00 2001 From: Vladislav Khorev Date: Tue, 14 Jul 2026 18:39:44 +0300 Subject: [PATCH] Fixing small bugs --- src/Environment.cpp | 2 +- src/main.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Environment.cpp b/src/Environment.cpp index 20c8333..d34b0f3 100644 --- a/src/Environment.cpp +++ b/src/Environment.cpp @@ -28,7 +28,7 @@ SDL_Window* Environment::window = nullptr; #ifdef EMSCRIPTEN bool Environment::isFullscreen = false; #else -bool Environment::isFullscreen = false; +bool Environment::isFullscreen = true; #endif bool Environment::isHighDPIEnabled = false; diff --git a/src/main.cpp b/src/main.cpp index 5217e0a..eeb2600 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -274,10 +274,10 @@ int main(int argc, char *argv[]) { Uint32 windowFlags = SDL_WINDOW_OPENGL | SDL_WINDOW_SHOWN | SDL_WINDOW_ALLOW_HIGHDPI | SDL_WINDOW_RESIZABLE; if (ZL::Environment::isFullscreen) { - // windowFlags |= SDL_WINDOW_FULLSCREEN_DESKTOP; + windowFlags |= SDL_WINDOW_FULLSCREEN_DESKTOP; } - ZL::Environment::isFullscreen = false; + //ZL::Environment::isFullscreen = false; SDL_DisplayMode dm; if (SDL_GetCurrentDisplayMode(0, &dm) == 0) {