aboutsummaryrefslogtreecommitdiff
path: root/engines/prince/graphics.cpp
diff options
context:
space:
mode:
authorlukaslw2014-04-04 16:16:15 +0200
committerlukaslw2014-06-22 19:24:29 +0200
commit07a4f82c6336333be6d3d2930830be17184fbb99 (patch)
treeae62684a60b6b6d84f779068e53e546368d6b75e /engines/prince/graphics.cpp
parentebf362571807ca514c521c8fbeac340edead7a1b (diff)
downloadscummvm-rg350-07a4f82c6336333be6d3d2930830be17184fbb99.tar.gz
scummvm-rg350-07a4f82c6336333be6d3d2930830be17184fbb99.tar.bz2
scummvm-rg350-07a4f82c6336333be6d3d2930830be17184fbb99.zip
PRINCE: Hero animation - beginning of showHero()
Diffstat (limited to 'engines/prince/graphics.cpp')
-rw-r--r--engines/prince/graphics.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/engines/prince/graphics.cpp b/engines/prince/graphics.cpp
index 97e2686f54..3f9517a6e9 100644
--- a/engines/prince/graphics.cpp
+++ b/engines/prince/graphics.cpp
@@ -72,9 +72,10 @@ void GraphicsMan::drawTransparent(uint16 posX, uint16 posY, const Graphics::Surf
{
for (uint y = 0; y < s->h; ++y) {
for (uint x = 0; x < s->w; ++x) {
- byte pixel = *((byte*)s->getBasePtr(x,y));
+ byte pixel = *((byte*)s->getBasePtr(x, y));
if (pixel != 255) {
- *((byte*)_frontScreen->getBasePtr(x, y)) = pixel;
+ //*((byte*)_frontScreen->getBasePtr(x, y)) = pixel;
+ *((byte*)_frontScreen->getBasePtr(x + posX, y + posY)) = pixel;
}
}
}