diff options
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); } |