aboutsummaryrefslogtreecommitdiff
path: root/engines/tucker/locations.cpp
diff options
context:
space:
mode:
authorGregory Montoir2009-09-27 10:36:45 +0000
committerGregory Montoir2009-09-27 10:36:45 +0000
commit0f564aad8138366d7606875b623e573cbb6141d4 (patch)
tree5bfe61eb165e7b3fa64599adf95156d9622563f0 /engines/tucker/locations.cpp
parent1b1471e8da6ec1c9349c5e6ddebb43392abc7218 (diff)
downloadscummvm-rg350-0f564aad8138366d7606875b623e573cbb6141d4.tar.gz
scummvm-rg350-0f564aad8138366d7606875b623e573cbb6141d4.tar.bz2
scummvm-rg350-0f564aad8138366d7606875b623e573cbb6141d4.zip
TUCKER: add clipping for text drawing
svn-id: r44393
Diffstat (limited to 'engines/tucker/locations.cpp')
-rw-r--r--engines/tucker/locations.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/engines/tucker/locations.cpp b/engines/tucker/locations.cpp
index 011410fe07..6e10649631 100644
--- a/engines/tucker/locations.cpp
+++ b/engines/tucker/locations.cpp
@@ -3033,17 +3033,17 @@ void TuckerEngine::execData3PreUpdate_locationNum70() {
_panelState = 1;
setCursorType(2);
int pos = getPositionForLine(22, _infoBarBuf);
- int offset = (_flagsTable[143] == 0) ? 90 * 640 + 88 : 72 * 640 + 88;
- drawStringAlt(offset, color, &_infoBarBuf[pos]);
- Graphics::drawStringChar(_locationBackgroundGfxBuf + offset + 9 * 640, 62, 640, color, _charsetGfxBuf);
+ const int yPos = (_flagsTable[143] == 0) ? 90 : 72;
+ drawStringAlt(88, yPos, color, &_infoBarBuf[pos]);
+ Graphics::drawStringChar(_locationBackgroundGfxBuf, 88, yPos + 9, 640, 62, color, _charsetGfxBuf);
if (_flagsTable[143] != 0) {
pos = getPositionForLine(_flagsTable[143] * 2 + 23, _infoBarBuf);
- drawStringAlt(offset + 18 * 640, color, &_infoBarBuf[pos]);
+ drawStringAlt(88, yPos + 18, color, &_infoBarBuf[pos]);
pos = getPositionForLine(_flagsTable[143] * 2 + 24, _infoBarBuf);
- drawStringAlt(offset + 27 * 640, color, &_infoBarBuf[pos]);
+ drawStringAlt(88, yPos + 27, color, &_infoBarBuf[pos]);
}
execData3PreUpdate_locationNum70Helper();
- drawStringAlt(offset + 9 * 640 + 8, color, _updateLocation70String, _updateLocation70StringLen);
+ drawStringAlt(88 + 8, yPos + 9, color, _updateLocation70String, _updateLocation70StringLen);
}
void TuckerEngine::execData3PreUpdate_locationNum70Helper() {