GlosSITarget: attempt to fix blurred BPM overlay

pull/183/head
Peter Repukat 2 years ago
parent d6b927c9b3
commit 315a58cfc1

@ -258,7 +258,7 @@ void TargetWindow::createWindow(bool window_mode)
// Due to some other issue, the (Steam) overlay might get blurred when doing this // 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... // as a workaround, start in full size, and scale down later...
spdlog::info("Creating Overlay window (Borderless Fullscreen)..."); 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, desktop_mode.height, 32), "GlosSITarget", sf::Style::None);
// get size of all monitors combined // get size of all monitors combined
const auto screenWidth = GetSystemMetrics(SM_CXVIRTUALSCREEN); const auto screenWidth = GetSystemMetrics(SM_CXVIRTUALSCREEN);
@ -275,6 +275,11 @@ void TargetWindow::createWindow(bool window_mode)
window_.setActive(true); window_.setActive(true);
spdlog::debug("Window position: {}x{}", window_.getPosition().x, window_.getPosition().y); spdlog::debug("Window position: {}x{}", window_.getPosition().x, window_.getPosition().y);
if (!window_mode) {
spdlog::info("Resizing window to 1px smaller than fullscreen...");
window_.setSize(sf::Vector2u(desktop_mode.width - 1, desktop_mode.height - 1));
}
#ifdef _WIN32 #ifdef _WIN32
HWND hwnd = window_.getSystemHandle(); HWND hwnd = window_.getSystemHandle();
auto dpi = GetWindowDPI(hwnd); auto dpi = GetWindowDPI(hwnd);

Loading…
Cancel
Save