diff options
author | Eugene Sandulenko | 2019-09-28 01:27:21 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2019-09-28 01:29:35 +0200 |
commit | 1dd056b6899e753eeec4cf4946857d2199734c20 (patch) | |
tree | 7479d049d7a18898f574837c103452e920d7ada0 /graphics/macgui | |
parent | bee8e3955ff511861067bec5db6ce507228ef695 (diff) | |
download | scummvm-rg350-1dd056b6899e753eeec4cf4946857d2199734c20.tar.gz scummvm-rg350-1dd056b6899e753eeec4cf4946857d2199734c20.tar.bz2 scummvm-rg350-1dd056b6899e753eeec4cf4946857d2199734c20.zip |
MACGUI: Do not assert when recalculating boards on loading
Diffstat (limited to 'graphics/macgui')
-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), |