mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-12-15 11:17:53 +01:00
[FancyZones] Restore window size fix (#17553)
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user