From 686bc4905065371dcac33d0d0be946850d6eca0d Mon Sep 17 00:00:00 2001 From: djsrv Date: Thu, 6 Aug 2020 18:55:13 -0400 Subject: [PATCH] GRAPHICS: MACGUI: Full refresh on dims changes The desktop needs to be redrawn. --- graphics/macgui/macwindow.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/graphics/macgui/macwindow.cpp b/graphics/macgui/macwindow.cpp index 73a56539c46..21b9d673244 100644 --- a/graphics/macgui/macwindow.cpp +++ b/graphics/macgui/macwindow.cpp @@ -132,6 +132,7 @@ void MacWindow::resize(int w, int h, bool inner) { _contentIsDirty = true; _borderIsDirty = true; + _wm->setFullRefresh(true); } void MacWindow::move(int x, int y) { @@ -142,6 +143,7 @@ void MacWindow::move(int x, int y) { updateInnerDims(); _contentIsDirty = true; + _wm->setFullRefresh(true); } void MacWindow::setDimensions(const Common::Rect &r) { @@ -150,6 +152,7 @@ void MacWindow::setDimensions(const Common::Rect &r) { updateInnerDims(); _contentIsDirty = true; + _wm->setFullRefresh(true); } void MacWindow::setBackgroundPattern(int pattern) { @@ -242,7 +245,6 @@ void MacWindow::updateOuterDims() { _dims = _innerDims; _dims.grow(kBorderWidth); } - _borderIsDirty = true; } void MacWindow::drawBorder() { @@ -454,6 +456,8 @@ void MacWindow::setBorder(Graphics::TransparentSurface *surface, bool active, Bo } updateOuterDims(); + _borderIsDirty = true; + _wm->setFullRefresh(true); } void MacWindow::setCloseable(bool closeable) {