From fbbd0b1575fe8344cacc8ab5abb8aeaa8792a17f Mon Sep 17 00:00:00 2001 From: Filippos Karapetis Date: Wed, 28 Oct 2009 14:45:26 +0000 Subject: Fixed the rectangle top inside kBaseSetter() svn-id: r45466 --- engines/sci/engine/kgraphics.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'engines/sci/engine') 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); -- cgit v1.2.3