aboutsummaryrefslogtreecommitdiff
path: root/engines/parallaction/gfxbase.cpp
diff options
context:
space:
mode:
authorNicola Mettifogo2010-06-13 06:55:58 +0000
committerNicola Mettifogo2010-06-13 06:55:58 +0000
commitd16eb491b17e662705e80d14c1f2ebe5f4e38cef (patch)
tree5827dca3e5512e1aaf363e74f76c32d7c2828d62 /engines/parallaction/gfxbase.cpp
parent3cacd7bc4372dbaae5c454236b4413ab87955347 (diff)
downloadscummvm-rg350-d16eb491b17e662705e80d14c1f2ebe5f4e38cef.tar.gz
scummvm-rg350-d16eb491b17e662705e80d14c1f2ebe5f4e38cef.tar.bz2
scummvm-rg350-d16eb491b17e662705e80d14c1f2ebe5f4e38cef.zip
Support for vertical scrolling. Patch 3005933 by fuzzie.
svn-id: r49620
Diffstat (limited to 'engines/parallaction/gfxbase.cpp')
-rw-r--r--engines/parallaction/gfxbase.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/parallaction/gfxbase.cpp b/engines/parallaction/gfxbase.cpp
index fc6cb28d9e..835bb204b4 100644
--- a/engines/parallaction/gfxbase.cpp
+++ b/engines/parallaction/gfxbase.cpp
@@ -222,10 +222,12 @@ void Gfx::drawGfxObject(GfxObj *obj, Graphics::Surface &surf) {
obj->getRect(obj->frame, rect);
int x = obj->x;
+ int y = obj->y;
if (_overlayMode) {
x += _scrollPosX;
+ y += _scrollPosY;
}
- rect.translate(x, obj->y);
+ rect.translate(x, y);
data = obj->getData(obj->frame);
if (obj->getSize(obj->frame) == obj->getRawSize(obj->frame)) {