diff options
author | Martin Kiewitz | 2009-10-06 16:45:06 +0000 |
---|---|---|
committer | Martin Kiewitz | 2009-10-06 16:45:06 +0000 |
commit | ed0a9611707c7b9145cb4e0401db4b53de754707 (patch) | |
tree | ec212d94420802a2bd9320ea3d52ed8716a51778 /engines/sci/gui | |
parent | ca9f08c6244a51098669993ccd829afefe33ff72 (diff) | |
download | scummvm-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.cpp | 2 |
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) { |