diff options
Diffstat (limited to 'engines/sci')
-rw-r--r-- | engines/sci/gui/gui_gfx.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/sci/gui/gui_gfx.cpp b/engines/sci/gui/gui_gfx.cpp index 0aa238ca1b..972ee9bb3a 100644 --- a/engines/sci/gui/gui_gfx.cpp +++ b/engines/sci/gui/gui_gfx.cpp @@ -859,8 +859,8 @@ void SciGuiGfx::Draw_Pattern(int16 x, int16 y, byte color, byte priority, byte c Common::Rect rect; // We need to adjust the given coordinates, because the ones given us do not define upper left but somewhat middle - y -= size; - x -= size; + y -= size; if (y < 0) y = 0; + x -= size; if (x < 0) x = 0; rect.top = y + _curPort->top; rect.left = x + _curPort->left; rect.setHeight((size*2)+1); rect.setWidth((size*2)+2); |