diff options
author | Filippos Karapetis | 2009-10-28 14:35:47 +0000 |
---|---|---|
committer | Filippos Karapetis | 2009-10-28 14:35:47 +0000 |
commit | 0851b00d4fd215bc2fef69e845cc6a9484b5838e (patch) | |
tree | 7292b4218d89bdce11e924fa894e3f8136aa5443 /engines | |
parent | 6ac2680e8285d66bb6431855af3bc062652ad344 (diff) | |
download | scummvm-rg350-0851b00d4fd215bc2fef69e845cc6a9484b5838e.tar.gz scummvm-rg350-0851b00d4fd215bc2fef69e845cc6a9484b5838e.tar.bz2 scummvm-rg350-0851b00d4fd215bc2fef69e845cc6a9484b5838e.zip |
Cleanup
svn-id: r45465
Diffstat (limited to 'engines')
-rw-r--r-- | engines/sci/engine/kgraphics.cpp | 28 |
1 files changed, 11 insertions, 17 deletions
diff --git a/engines/sci/engine/kgraphics.cpp b/engines/sci/engine/kgraphics.cpp index ccd900f12b..99fde3da9c 100644 --- a/engines/sci/engine/kgraphics.cpp +++ b/engines/sci/engine/kgraphics.cpp @@ -491,19 +491,13 @@ reg_t kBaseSetter(EngineState *s, int argc, reg_t *argv) { reg_t object = argv[0]; if (lookup_selector(s->_segMan, object, s->_kernel->_selectorCache.brLeft, NULL, NULL) == kSelectorVariable) { - SegManager *segMan = s->_segMan; - - int x = (int16)GET_SEL32V(segMan, object, x); - int y = (int16)GET_SEL32V(segMan, object, y); - int z = (s->_kernel->_selectorCache.z > -1) ? (int16)GET_SEL32V(segMan, object, z) : 0; - - int ystep = (int16)GET_SEL32V(segMan, object, yStep); - - int view = (int16)GET_SEL32V(segMan, object, view); - int loop = GET_SEL32V(segMan, object, loop); - int cel = GET_SEL32V(segMan, object, cel); - - Common::Point offset; + 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 view = GET_SEL32V(s->_segMan, object, view); + int loop = GET_SEL32V(s->_segMan, object, loop); + int cel = GET_SEL32V(s->_segMan, object, cel); SciGuiView *tmpView = new SciGuiView(s->resMan, NULL, NULL, view); sciViewCelInfo *celInfo = tmpView->getCelInfo(loop, cel); @@ -517,10 +511,10 @@ reg_t kBaseSetter(EngineState *s, int argc, reg_t *argv) { delete tmpView; - PUT_SEL32V(segMan, object, brLeft, left); - PUT_SEL32V(segMan, object, brRight, right); - PUT_SEL32V(segMan, object, brTop, top); - PUT_SEL32V(segMan, object, brBottom, bottom); + PUT_SEL32V(s->_segMan, object, brLeft, left); + PUT_SEL32V(s->_segMan, object, brRight, right); + PUT_SEL32V(s->_segMan, object, brTop, top); + PUT_SEL32V(s->_segMan, object, brBottom, bottom); } return s->r_acc; |