diff options
author | Filippos Karapetis | 2009-10-28 14:45:26 +0000 |
---|---|---|
committer | Filippos Karapetis | 2009-10-28 14:45:26 +0000 |
commit | fbbd0b1575fe8344cacc8ab5abb8aeaa8792a17f (patch) | |
tree | 128de432783d3c204024ac48ab52becf07b4428c | |
parent | 0851b00d4fd215bc2fef69e845cc6a9484b5838e (diff) | |
download | scummvm-rg350-fbbd0b1575fe8344cacc8ab5abb8aeaa8792a17f.tar.gz scummvm-rg350-fbbd0b1575fe8344cacc8ab5abb8aeaa8792a17f.tar.bz2 scummvm-rg350-fbbd0b1575fe8344cacc8ab5abb8aeaa8792a17f.zip |
Fixed the rectangle top inside kBaseSetter()
svn-id: r45466
-rw-r--r-- | engines/sci/engine/kgraphics.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/sci/engine/kgraphics.cpp b/engines/sci/engine/kgraphics.cpp index 99fde3da9c..59f61e4ebc 100644 --- a/engines/sci/engine/kgraphics.cpp +++ b/engines/sci/engine/kgraphics.cpp @@ -494,7 +494,7 @@ reg_t kBaseSetter(EngineState *s, int argc, reg_t *argv) { int x = (int16)GET_SEL32V(s->_segMan, object, x); int y = (int16)GET_SEL32V(s->_segMan, object, y); int z = (s->_kernel->_selectorCache.z > -1) ? (int16)GET_SEL32V(s->_segMan, object, z) : 0; - //int ystep = (int16)GET_SEL32V(s->_segMan, object, yStep); + int ystep = (int16)GET_SEL32V(s->_segMan, object, yStep); int view = GET_SEL32V(s->_segMan, object, view); int loop = GET_SEL32V(s->_segMan, object, loop); int cel = GET_SEL32V(s->_segMan, object, cel); @@ -504,7 +504,7 @@ reg_t kBaseSetter(EngineState *s, int argc, reg_t *argv) { int left = x + celInfo->displaceX - (celInfo->width >> 1); int right = left + celInfo->width; int bottom = y + celInfo->displaceY - z + 1; - int top = bottom - celInfo->height; + int top = bottom - ystep; debugC(2, kDebugLevelBaseSetter, "(%d,%d)+/-(%d,%d), (%d x %d) -> (%d, %d) to (%d, %d)\n", x, y, celInfo->displaceX, celInfo->displaceY, celInfo->width, celInfo->height, left, top, bottom, right); |