aboutsummaryrefslogtreecommitdiff
path: root/engines/cge2/vga13h.cpp
diff options
context:
space:
mode:
authoruruk2014-05-23 11:40:56 +0200
committeruruk2014-05-23 11:40:56 +0200
commit02817a7bd5b5ade5afb51f2ea545238d284b2fd8 (patch)
tree52d8b48812fc68aab62ac7c4d9000697dbeafa76 /engines/cge2/vga13h.cpp
parentc734aa08b1c564e724c8ec2a60719221bb07cff1 (diff)
downloadscummvm-rg350-02817a7bd5b5ade5afb51f2ea545238d284b2fd8.tar.gz
scummvm-rg350-02817a7bd5b5ade5afb51f2ea545238d284b2fd8.tar.bz2
scummvm-rg350-02817a7bd5b5ade5afb51f2ea545238d284b2fd8.zip
CGE2: Implement Sprite::hide().
Diffstat (limited to 'engines/cge2/vga13h.cpp')
-rw-r--r--engines/cge2/vga13h.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/engines/cge2/vga13h.cpp b/engines/cge2/vga13h.cpp
index b258ae7414..662ea4495e 100644
--- a/engines/cge2/vga13h.cpp
+++ b/engines/cge2/vga13h.cpp
@@ -584,7 +584,9 @@ void Sprite::show(uint16 pg) {
}
void Sprite::hide() {
- warning("STUB: Sprite::hide()");
+ SprExt *e = _ext;
+ if (e->_b0)
+ e->_b0->hide(e->_p0.x, e->_p0.y);
}
BitmapPtr Sprite::ghost() {
@@ -1093,6 +1095,10 @@ void Bitmap::show(int16 x, int16 y) {
void Bitmap::hide(int16 x, int16 y) {
+ V2D pos(_vm, x, y);
+ xLatPos(pos);
+ x = pos.x;
+ y = pos.y;
for (int yp = y; yp < y + _h; yp++) {
const byte *srcP = (const byte *)_vm->_vga->_page[2]->getBasePtr(x, yp);
byte *destP = (byte *)_vm->_vga->_page[1]->getBasePtr(x, yp);