diff options
author | Max Horn | 2004-08-14 19:42:00 +0000 |
---|---|---|
committer | Max Horn | 2004-08-14 19:42:00 +0000 |
commit | 152a5e97fe5197a5494fdde8967301888f360d2c (patch) | |
tree | ed39818d7a6b2f3e1fce0f3b379bedb3652f0d63 /scumm/base-costume.cpp | |
parent | d5f20cacd7061b4cff302f5b4f50c61a14461425 (diff) | |
download | scummvm-rg350-152a5e97fe5197a5494fdde8967301888f360d2c.tar.gz scummvm-rg350-152a5e97fe5197a5494fdde8967301888f360d2c.tar.bz2 scummvm-rg350-152a5e97fe5197a5494fdde8967301888f360d2c.zip |
Modified VirtScreen to inherit from Graphics::Surface, and added getPixels()/getBackPixels() accessors (these changes make it a bit easier to implement smooth scrolling); also replaced some uses of rtBuffer by proper access through the corresponding VirtScreen
svn-id: r14612
Diffstat (limited to 'scumm/base-costume.cpp')
-rw-r--r-- | scumm/base-costume.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/scumm/base-costume.cpp b/scumm/base-costume.cpp index 718678ec99..6d5298e3fe 100644 --- a/scumm/base-costume.cpp +++ b/scumm/base-costume.cpp @@ -30,13 +30,13 @@ byte BaseCostumeRenderer::drawCostume(const VirtScreen &vs, const CostumeData &c byte result = 0; if (drawVirScr) - _outptr = _vm->getResourceAddress(rtBuffer, 5) + vs.xstart; + _outptr = _vm->virtscr[0].getPixels(0, 0); else - _outptr = vs.screenPtr + vs.xstart; + _outptr = vs.getPixels(0, 0); - _outwidth = vs.width; - _outheight = vs.height; - _numStrips = vs.width / 8; + _outwidth = vs.w; + _outheight = vs.h; + _numStrips = _outwidth / 8; if (_vm->_version == 1) { _xmove = 0; |