aboutsummaryrefslogtreecommitdiff
path: root/scumm/charset.cpp
diff options
context:
space:
mode:
authorMax Horn2003-05-10 21:49:59 +0000
committerMax Horn2003-05-10 21:49:59 +0000
commitacb35fc915284cb3b194ba8864eb24e39fff992e (patch)
treedfc1dd77fcda48c14ee8ea0e898cdbd023a14344 /scumm/charset.cpp
parente5fe73726a554d312f30682508d2474c8734b0ef (diff)
downloadscummvm-rg350-acb35fc915284cb3b194ba8864eb24e39fff992e.tar.gz
scummvm-rg350-acb35fc915284cb3b194ba8864eb24e39fff992e.tar.bz2
scummvm-rg350-acb35fc915284cb3b194ba8864eb24e39fff992e.zip
renamed _scrWidth/_scrHeight -> _roomWidht/_roomHeight, and _realWidth/_realHeight -> _screenWidth/_screenHeight (inspired by MadMoose, but I'll take the blame - still this seems much more logical & intuitive)
svn-id: r7423
Diffstat (limited to 'scumm/charset.cpp')
-rw-r--r--scumm/charset.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/scumm/charset.cpp b/scumm/charset.cpp
index 487ce33fd5..0594db3364 100644
--- a/scumm/charset.cpp
+++ b/scumm/charset.cpp
@@ -378,7 +378,7 @@ void CharsetRendererV3::printChar(int chr) {
}
char_ptr = _fontPtr + chr * 8;
- dest_ptr = vs->screenPtr + vs->xstart + (_top - vs->topline) * _vm->_realWidth + _left;
+ dest_ptr = vs->screenPtr + vs->xstart + (_top - vs->topline) * _vm->_screenWidth + _left;
mask_ptr = _vm->getResourceAddress(rtBuffer, 9) + _vm->_screenStartStrip + (_top - vs->topline) * _vm->gdi._numStrips + _left / 8;
useMask = (vs->number == 0 && !_ignoreCharsetMask);
@@ -398,8 +398,8 @@ void CharsetRendererV3::printChar(int chr) {
if (buffer & bit) {
if (_dropShadow) {
*(dest_ptr + x + 1) = 0;
- *(dest_ptr + x + _vm->_realWidth) = 0;
- *(dest_ptr + x + _vm->_realWidth + 1) = 0;
+ *(dest_ptr + x + _vm->_screenWidth) = 0;
+ *(dest_ptr + x + _vm->_screenWidth + 1) = 0;
}
*(dest_ptr + x) = _color;
@@ -423,7 +423,7 @@ void CharsetRendererV3::printChar(int chr) {
maskpos++;
}
}
- dest_ptr += _vm->_realWidth;
+ dest_ptr += _vm->_screenWidth;
mask_ptr += _vm->gdi._numStrips;
}
@@ -533,12 +533,12 @@ void CharsetRendererClassic::printChar(int chr) {
byte *mask = _vm->getResourceAddress(rtBuffer, 9)
+ drawTop * _vm->gdi._numStrips + _left / 8 + _vm->_screenStartStrip;
- byte *dst = vs->screenPtr + vs->xstart + drawTop * _vm->_realWidth + _left;
+ byte *dst = vs->screenPtr + vs->xstart + drawTop * _vm->_screenWidth + _left;
if (_blitAlso) {
byte *back = dst;
dst = _vm->getResourceAddress(rtBuffer, vs->number + 5)
- + vs->xstart + drawTop * _vm->_realWidth + _left;
+ + vs->xstart + drawTop * _vm->_screenWidth + _left;
drawBits(vs, dst, mask, drawTop, width, height);
@@ -599,7 +599,7 @@ void CharsetRendererClassic::drawBits(VirtScreen *vs, byte *dst, byte *mask, int
maskpos++;
}
}
- dst += _vm->_realWidth - width;
+ dst += _vm->_screenWidth - width;
mask += _vm->gdi._numStrips;
}
}