diff options
author | crupest <crupest@outlook.com> | 2021-11-21 16:53:10 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2021-11-21 16:53:10 +0800 |
commit | 73b90d4fe6c93a288ca6514432fe1e83ddcf4928 (patch) | |
tree | 9e97626fa23e7855f994a6c451eab65b9efc81f1 /src/osx/gui/Window.mm | |
parent | eeb1f55d5a483720441c3f44e83d02cc882a3bc0 (diff) | |
download | cru-73b90d4fe6c93a288ca6514432fe1e83ddcf4928.tar.gz cru-73b90d4fe6c93a288ca6514432fe1e83ddcf4928.tar.bz2 cru-73b90d4fe6c93a288ca6514432fe1e83ddcf4928.zip |
...
Diffstat (limited to 'src/osx/gui/Window.mm')
-rw-r--r-- | src/osx/gui/Window.mm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/osx/gui/Window.mm b/src/osx/gui/Window.mm index 06bbaff9..6e4c8497 100644 --- a/src/osx/gui/Window.mm +++ b/src/osx/gui/Window.mm @@ -259,9 +259,9 @@ Size OsxWindow::GetClientSize() { return p_->content_rect_.GetSize(); } void OsxWindow::SetClientSize(const Size& size) { if (p_->window_) { - auto rect = GetWindowRect(); + auto rect = GetClientRect(); rect.SetSize(size); - SetWindowRect(rect); + SetClientRect(rect); } else { p_->content_rect_.SetSize(size); } |