aboutsummaryrefslogtreecommitdiff
path: root/engines/parallaction/gfxbase.cpp
diff options
context:
space:
mode:
authorNicola Mettifogo2008-12-06 04:51:04 +0000
committerNicola Mettifogo2008-12-06 04:51:04 +0000
commit7681461b16ee09eb8620fc99d8cd9445c263594b (patch)
tree960f1af1edde885e2243214cf447b401e5b38615 /engines/parallaction/gfxbase.cpp
parent7a4984304721eb91ca5c3349871be1cab228451d (diff)
downloadscummvm-rg350-7681461b16ee09eb8620fc99d8cd9445c263594b.tar.gz
scummvm-rg350-7681461b16ee09eb8620fc99d8cd9445c263594b.tar.bz2
scummvm-rg350-7681461b16ee09eb8620fc99d8cd9445c263594b.zip
Implemented horizontal scrolling for BRA, by using a back buffer. Dialogues in scrollable locations are a bit messed up for the moment.
svn-id: r35253
Diffstat (limited to 'engines/parallaction/gfxbase.cpp')
-rw-r--r--engines/parallaction/gfxbase.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/engines/parallaction/gfxbase.cpp b/engines/parallaction/gfxbase.cpp
index 8eb9753edd..5ed5c7a109 100644
--- a/engines/parallaction/gfxbase.cpp
+++ b/engines/parallaction/gfxbase.cpp
@@ -173,10 +173,8 @@ void Gfx::drawGfxObject(GfxObj *obj, Graphics::Surface &surf, bool scene) {
Common::Rect rect;
byte *data;
- uint scrollX = (scene) ? -_varScrollX : 0;
-
obj->getRect(obj->frame, rect);
- rect.translate(obj->x + scrollX, obj->y);
+ rect.translate(obj->x, obj->y);
data = obj->getData(obj->frame);
if (obj->getSize(obj->frame) == obj->getRawSize(obj->frame)) {