diff options
author | Max Horn | 2004-01-04 13:09:02 +0000 |
---|---|---|
committer | Max Horn | 2004-01-04 13:09:02 +0000 |
commit | 805f5124529dc3c1faf1eaae23d797b1c5eed1eb (patch) | |
tree | d1e93b75f988b26449f1efd70004e5fa2b4294f3 /scumm/nut_renderer.cpp | |
parent | 14cf65c0abefeebca080ec1a689af8294453597b (diff) | |
download | scummvm-rg350-805f5124529dc3c1faf1eaae23d797b1c5eed1eb.tar.gz scummvm-rg350-805f5124529dc3c1faf1eaae23d797b1c5eed1eb.tar.bz2 scummvm-rg350-805f5124529dc3c1faf1eaae23d797b1c5eed1eb.zip |
replaced many instances of _screenWidth by VirtScreen::width, where approriate (there are cases, like when dealing with the camera, where _screenWidth is correct; in other places we still use it, because the VirtScreen is not available in that place at this time, will be fixed later). Reason for all this: eventually a clean seperation will allow us to use a main screen which is wider than the real screen width -> useful for V7+ smooth scrolling
svn-id: r12131
Diffstat (limited to 'scumm/nut_renderer.cpp')
-rw-r--r-- | scumm/nut_renderer.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scumm/nut_renderer.cpp b/scumm/nut_renderer.cpp index df737d9cda..240231c5e6 100644 --- a/scumm/nut_renderer.cpp +++ b/scumm/nut_renderer.cpp @@ -243,6 +243,7 @@ void NutRenderer::drawShadowChar(int c, int x, int y, byte color, bool useMask) return; } + VirtScreen *vs = &_vm->virtscr[kMainVirtScreen]; byte *dst, *mask = NULL; // HACK: we draw the character a total of 7 times: 6 times shifted @@ -262,7 +263,7 @@ void NutRenderer::drawShadowChar(int c, int x, int y, byte color, bool useMask) y += offsetY[i]; color = cTable[i]; - dst = _vm->virtscr[0].screenPtr + (y + _vm->_screenTop) * _vm->_screenWidth + x + _vm->virtscr[0].xstart; + dst = vs->screenPtr + (y + _vm->_screenTop) * vs->width + x + vs->xstart; if (useMask) mask = _vm->getMaskBuffer(x, y + _vm->_screenTop, 0); |