[FancyZones] Restore window size fix (#17553)

This commit is contained in:
Seraphima Zykova
2022-04-06 18:33:02 +02:00
committed by GitHub
parent a09d8bf14b
commit 75e966ce19

View File

@@ -402,8 +402,8 @@ void FancyZonesWindowUtils::RestoreWindowSize(HWND window) noexcept
RECT rect; RECT rect;
if (GetWindowRect(window, &rect)) if (GetWindowRect(window, &rect))
{ {
rect.right = rect.left + windowSize[0]; rect.right = rect.left + static_cast<int>(windowWidth);
rect.bottom = rect.top + windowSize[1]; rect.bottom = rect.top + static_cast<int>(windowHeight);
Logger::info("Restore window size"); Logger::info("Restore window size");
SizeWindowToRect(window, rect); SizeWindowToRect(window, rect);
} }