diff options
author | Nicola Mettifogo | 2009-03-23 00:56:05 +0000 |
---|---|---|
committer | Nicola Mettifogo | 2009-03-23 00:56:05 +0000 |
commit | 71f42a954988bfe490d9c76e16edfa06873fe1b8 (patch) | |
tree | e641a159bd307189d96dc6afca2efbec56f9316e /engines/parallaction/gfxbase.cpp | |
parent | e3f9acc3e6c66ab42e6e992536c933069771c99e (diff) | |
download | scummvm-rg350-71f42a954988bfe490d9c76e16edfa06873fe1b8.tar.gz scummvm-rg350-71f42a954988bfe490d9c76e16edfa06873fe1b8.tar.bz2 scummvm-rg350-71f42a954988bfe490d9c76e16edfa06873fe1b8.zip |
Fully implemented scrolling.
svn-id: r39622
Diffstat (limited to 'engines/parallaction/gfxbase.cpp')
-rw-r--r-- | engines/parallaction/gfxbase.cpp | 25 |
1 files changed, 1 insertions, 24 deletions
diff --git a/engines/parallaction/gfxbase.cpp b/engines/parallaction/gfxbase.cpp index 47bf0000db..ec72b14c15 100644 --- a/engines/parallaction/gfxbase.cpp +++ b/engines/parallaction/gfxbase.cpp @@ -227,7 +227,7 @@ void Gfx::drawGfxObject(GfxObj *obj, Graphics::Surface &surf) { int x = obj->x; if (_overlayMode) { - x += _scrollPos; + x += _scrollPosX; } rect.translate(x, obj->y); data = obj->getData(obj->frame); @@ -248,29 +248,6 @@ void Gfx::drawText(Font *font, Graphics::Surface* surf, uint16 x, uint16 y, cons } -#if 0 -void Gfx::unpackBlt(const Common::Rect& r, byte *data, uint size, Graphics::Surface *surf, uint16 z, byte transparentColor) { - - byte *d = _unpackedBitmap; - - while (size > 0) { - - uint8 p = *data++; - size--; - uint8 color = p & 0xF; - uint8 repeat = (p & 0xF0) >> 4; - if (repeat == 0) { - repeat = *data++; - size--; - } - - memset(d, color, repeat); - d += repeat; - } - - blt(r, _unpackedBitmap, surf, z, transparentColor); -} -#endif void Gfx::unpackBlt(const Common::Rect& r, byte *data, uint size, Graphics::Surface *surf, uint16 z, uint scale, byte transparentColor) { byte *d = _unpackedBitmap; |