From 0b21e30e440955c7528def1f769d249008c89269 Mon Sep 17 00:00:00 2001 From: WerWolv Date: Thu, 11 May 2023 20:49:07 +0200 Subject: [PATCH] fix: White border around maximized window on WIndows --- main/source/window/win_window.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main/source/window/win_window.cpp b/main/source/window/win_window.cpp index 2d8f44865..981556beb 100644 --- a/main/source/window/win_window.cpp +++ b/main/source/window/win_window.cpp @@ -92,8 +92,8 @@ namespace hex { rect = RECT { .left = static_cast(client.left + windowInfo.cyWindowBorders), .top = static_cast(client.top + windowInfo.cyWindowBorders), - .right = static_cast(client.right - windowInfo.cyWindowBorders * 2), - .bottom = static_cast(client.bottom - windowInfo.cyWindowBorders * 2) + 1 + .right = static_cast(client.right - windowInfo.cyWindowBorders), + .bottom = static_cast(client.bottom - windowInfo.cyWindowBorders) + 1 }; } else { rect = client;