From 431053e735981b2a539b333c7f3bf13ef399690c Mon Sep 17 00:00:00 2001 From: Peter Repukat Date: Sun, 11 Sep 2022 23:37:40 +0200 Subject: [PATCH] Update Clang-format files --- GlosSIConfig/.clang-format | 1 + GlosSITarget/.clang-format | 1 + GlosSITarget/TargetWindow.cpp | 8 +++++++- 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/GlosSIConfig/.clang-format b/GlosSIConfig/.clang-format index dc813fd..7cc5c0d 100644 --- a/GlosSIConfig/.clang-format +++ b/GlosSIConfig/.clang-format @@ -1,4 +1,5 @@ UseTab: false +BasedOnStyle: LLVM IndentWidth: 4 BreakBeforeBraces: "Stroustrup" AllowShortIfStatementsOnASingleLine: false diff --git a/GlosSITarget/.clang-format b/GlosSITarget/.clang-format index b5e5b98..1c78926 100644 --- a/GlosSITarget/.clang-format +++ b/GlosSITarget/.clang-format @@ -1,3 +1,4 @@ +BasedOnStyle: LLVM UseTab: false IndentWidth: 4 BreakBeforeBraces: "Stroustrup" diff --git a/GlosSITarget/TargetWindow.cpp b/GlosSITarget/TargetWindow.cpp index f2eb178..119c5fd 100644 --- a/GlosSITarget/TargetWindow.cpp +++ b/GlosSITarget/TargetWindow.cpp @@ -254,8 +254,11 @@ void TargetWindow::createWindow(bool window_mode) #ifdef _WIN32 // For some completely odd reason, the Background becomes black when enabled dpi-awareness and making the window desktop-size. // Scaling down by 1px each direction is barely noticeable and works. + + // Due to some other issue, the (Steam) overlay might get blurred when doing this + // as a workaround, start in full size, and scale down later... spdlog::info("Creating Overlay window (Borderless Fullscreen)..."); - window_.create(sf::VideoMode(desktop_mode.width - 1, desktop_mode.height - 1, 32), "GlosSITarget", sf::Style::None); + window_.create(sf::VideoMode(desktop_mode.width -1, desktop_mode.height -1, 32), "GlosSITarget", sf::Style::None); #else window_.create(desktop_mode, "GlosSITarget", sf::Style::None); #endif @@ -320,6 +323,9 @@ void TargetWindow::createWindow(bool window_mode) else { spdlog::warn("Not applying too low screen scale setting"); } + + // window_.setSize({desktop_mode.width - 1, desktop_mode.height - 1 }); + on_window_changed_(); #ifdef _WIN32