diff options
-rw-r--r-- | engines/wage/gui.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/engines/wage/gui.cpp b/engines/wage/gui.cpp index afb30c78a3..9c80435b70 100644 --- a/engines/wage/gui.cpp +++ b/engines/wage/gui.cpp @@ -395,6 +395,14 @@ void Gui::paintBorder(Graphics::Surface *g, Common::Rect &r, WindowType windowTy font->drawString(g, _scene->_name, x + (width - w) / 2 + 5, y + yOff, w, kColorBlack); } + if (x < 0) { + width += x; + x = 0; + } + if (y < 0) { + height += y; + y = 0; + } if (x + width > _screen.w) width = _screen.w - x; if (y + height > _screen.h) |