diff options
-rw-r--r-- | graphics/macgui/macwindow.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/graphics/macgui/macwindow.cpp b/graphics/macgui/macwindow.cpp index a64cc88a43..08343c0f98 100644 --- a/graphics/macgui/macwindow.cpp +++ b/graphics/macgui/macwindow.cpp @@ -172,6 +172,9 @@ static void drawPixelInverted(int x, int y, int color, void *data) { } void MacWindow::updateInnerDims() { + if (_dims.isEmpty()) + return; + if (_macBorder.hasBorder(_active) && _macBorder.hasOffsets()) { _innerDims = Common::Rect( _dims.left + _macBorder.getOffset(kBorderOffsetLeft), |