aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/gui
diff options
context:
space:
mode:
authorMartin Kiewitz2009-10-06 16:45:06 +0000
committerMartin Kiewitz2009-10-06 16:45:06 +0000
commited0a9611707c7b9145cb4e0401db4b53de754707 (patch)
treeec212d94420802a2bd9320ea3d52ed8716a51778 /engines/sci/gui
parentca9f08c6244a51098669993ccd829afefe33ff72 (diff)
downloadscummvm-rg350-ed0a9611707c7b9145cb4e0401db4b53de754707.tar.gz
scummvm-rg350-ed0a9611707c7b9145cb4e0401db4b53de754707.tar.bz2
scummvm-rg350-ed0a9611707c7b9145cb4e0401db4b53de754707.zip
SCI/newgui: drawpattern now adjusts to curPort
svn-id: r44702
Diffstat (limited to 'engines/sci/gui')
-rw-r--r--engines/sci/gui/gui_gfx.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sci/gui/gui_gfx.cpp b/engines/sci/gui/gui_gfx.cpp
index dbad1bb162..5db42fe1e0 100644
--- a/engines/sci/gui/gui_gfx.cpp
+++ b/engines/sci/gui/gui_gfx.cpp
@@ -856,7 +856,7 @@ void SciGuiGfx::Draw_Pattern(int16 x, int16 y, byte color, byte priority, byte c
y -= size;
x -= (size + 1) >> 1;
- rect.top = y; rect.left = x;
+ rect.top = y + _curPort->top; rect.left = x + _curPort->left;
rect.setHeight((size*2)+1); rect.setWidth(size+1);
if (code & SCI_PATTERN_CODE_RECTANGLE) {