Remove unused variables from WindowHelper::fixMaximizedWindow

This commit is contained in:
Ilya Fedin 2023-08-12 03:39:39 +04:00 committed by John Preston
parent 18ac9868bb
commit 92cb6f6809

View file

@ -921,11 +921,7 @@ void WindowHelper::updateMargins() {
void WindowHelper::fixMaximizedWindow() { void WindowHelper::fixMaximizedWindow() {
if (::Platform::IsWindows11OrGreater()) return; if (::Platform::IsWindows11OrGreater()) return;
auto r = RECT();
GetClientRect(_handle, &r);
const auto style = GetWindowLongPtr(_handle, GWL_STYLE); const auto style = GetWindowLongPtr(_handle, GWL_STYLE);
const auto styleEx = GetWindowLongPtr(_handle, GWL_EXSTYLE);
AdjustWindowRectEx(&r, style, false, styleEx);
if (style & WS_MAXIMIZE) { if (style & WS_MAXIMIZE) {
auto w = RECT(); auto w = RECT();
GetWindowRect(_handle, &w); GetWindowRect(_handle, &w);