diff options
author | Nicola Mettifogo | 2008-12-06 06:17:10 +0000 |
---|---|---|
committer | Nicola Mettifogo | 2008-12-06 06:17:10 +0000 |
commit | 4c377e03390d3d1f4ae2bd33ff4be39962ff2194 (patch) | |
tree | 03f216136d6278a6add483cf215089d9fdba878a /engines/parallaction/gfxbase.cpp | |
parent | 3fc72c63d930c07a52c9c34c36eb1ef58271e42a (diff) | |
download | scummvm-rg350-4c377e03390d3d1f4ae2bd33ff4be39962ff2194.tar.gz scummvm-rg350-4c377e03390d3d1f4ae2bd33ff4be39962ff2194.tar.bz2 scummvm-rg350-4c377e03390d3d1f4ae2bd33ff4be39962ff2194.zip |
Fixed positioning of overlayed graphics (dialogues, inventory, labels) in all locations. These items are now all handled in screen coordinates which are translated automatically by the renderer.
svn-id: r35255
Diffstat (limited to 'engines/parallaction/gfxbase.cpp')
-rw-r--r-- | engines/parallaction/gfxbase.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/engines/parallaction/gfxbase.cpp b/engines/parallaction/gfxbase.cpp index 5ed5c7a109..d24bfa9cfe 100644 --- a/engines/parallaction/gfxbase.cpp +++ b/engines/parallaction/gfxbase.cpp @@ -174,7 +174,12 @@ void Gfx::drawGfxObject(GfxObj *obj, Graphics::Surface &surf, bool scene) { byte *data; obj->getRect(obj->frame, rect); - rect.translate(obj->x, obj->y); + + int x = obj->x; + if (_overlayMode) { + x += _scrollPos; + } + rect.translate(x, obj->y); data = obj->getData(obj->frame); if (obj->getSize(obj->frame) == obj->getRawSize(obj->frame)) { |