diff options
author | Paweł Kołodziejski | 2002-08-31 18:46:00 +0000 |
---|---|---|
committer | Paweł Kołodziejski | 2002-08-31 18:46:00 +0000 |
commit | bb71d9e67736d4b6c08b4f8e6d780cf8a94113b7 (patch) | |
tree | 62dbd66b32002b4709216764c7adf7b741828501 /scumm/string.cpp | |
parent | 23c8db678012d0df128569d74fdf75ad9ed54f88 (diff) | |
download | scummvm-rg350-bb71d9e67736d4b6c08b4f8e6d780cf8a94113b7.tar.gz scummvm-rg350-bb71d9e67736d4b6c08b4f8e6d780cf8a94113b7.tar.bz2 scummvm-rg350-bb71d9e67736d4b6c08b4f8e6d780cf8a94113b7.zip |
fixes
svn-id: r4887
Diffstat (limited to 'scumm/string.cpp')
-rw-r--r-- | scumm/string.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/scumm/string.cpp b/scumm/string.cpp index b2fea7fc4a..2509811e32 100644 --- a/scumm/string.cpp +++ b/scumm/string.cpp @@ -813,7 +813,7 @@ void CharsetRenderer::printCharOld(int chr) _unk12 = 0; } char_ptr = _vm->getResourceAddress(rtCharset, _curId) + 224 + (chr + 1) * 8; - dest_ptr = vs->screenPtr + vs->xstart + (_top - vs->topline) * _realWidth + _left; + dest_ptr = vs->screenPtr + vs->xstart + (_top - vs->topline) * _vm->_realWidth + _left; _vm->updateDirtyRect(vs->number, _left, _left + 8, _top - vs->topline, _top - vs->topline + 8, 0); for (y = 0; y < 8; y++) { @@ -824,7 +824,7 @@ void CharsetRenderer::printCharOld(int chr) } color = ((buffer & mask) != 0); if (color) - *(dest_ptr + y * _realWidth + x) = _color; + *(dest_ptr + y * _vm->_realWidth + x) = _color; } } @@ -937,7 +937,7 @@ void CharsetRenderer::printChar(int chr) _hasMask = true; #endif - _dest_ptr = _backbuff_ptr = vs->screenPtr + vs->xstart + _drawTop * _realWidth + _left; + _dest_ptr = _backbuff_ptr = vs->screenPtr + vs->xstart + _drawTop * _vm->_realWidth + _left; #if !defined(OLD) if (_blitAlso) { @@ -945,7 +945,7 @@ void CharsetRenderer::printChar(int chr) if (1) { #endif _dest_ptr = _bgbak_ptr = _vm->getResourceAddress(rtBuffer, vs->number + 5) - + vs->xstart + _drawTop * _realWidth + _left; + + vs->xstart + _drawTop * _vm->_realWidth + _left; } _mask_ptr = _vm->getResourceAddress(rtBuffer, 9) @@ -1012,7 +1012,7 @@ void CharsetRenderer::drawBits() maskpos++; } } - dst = (_dest_ptr += _realWidth); + dst = (_dest_ptr += _vm->_realWidth); mask += 40; y++; } |