Skip to content

Commit

Permalink
[FancyZones] Restore window size fix (#17553)
Browse files Browse the repository at this point in the history
  • Loading branch information
SeraphimaZykova authored Apr 6, 2022
1 parent a09d8bf commit 75e966c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/modules/fancyzones/FancyZonesLib/WindowUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -402,8 +402,8 @@ void FancyZonesWindowUtils::RestoreWindowSize(HWND window) noexcept
RECT rect;
if (GetWindowRect(window, &rect))
{
rect.right = rect.left + windowSize[0];
rect.bottom = rect.top + windowSize[1];
rect.right = rect.left + static_cast<int>(windowWidth);
rect.bottom = rect.top + static_cast<int>(windowHeight);
Logger::info("Restore window size");
SizeWindowToRect(window, rect);
}
Expand Down

0 comments on commit 75e966c

Please sign in to comment.