aboutsummaryrefslogtreecommitdiff
path: root/engines/scumm/string.cpp
diff options
context:
space:
mode:
authorTravis Howell2007-03-23 23:31:43 +0000
committerTravis Howell2007-03-23 23:31:43 +0000
commit0818a44424fed36d4f00d1007a556ff18b49b35a (patch)
tree19a43b1cf71f064025a257818c568fec5a24503f /engines/scumm/string.cpp
parent00ea91c5d628ebc56d99ad7f23f26e28f56a7955 (diff)
downloadscummvm-rg350-0818a44424fed36d4f00d1007a556ff18b49b35a.tar.gz
scummvm-rg350-0818a44424fed36d4f00d1007a556ff18b49b35a.tar.bz2
scummvm-rg350-0818a44424fed36d4f00d1007a556ff18b49b35a.zip
Add part of patch #1687053 - Scumm: Fix charset glitches in original Save-dialog.
svn-id: r26283
Diffstat (limited to 'engines/scumm/string.cpp')
-rw-r--r--engines/scumm/string.cpp13
1 files changed, 10 insertions, 3 deletions
diff --git a/engines/scumm/string.cpp b/engines/scumm/string.cpp
index 8232d622ca..432cd7f1c9 100644
--- a/engines/scumm/string.cpp
+++ b/engines/scumm/string.cpp
@@ -709,9 +709,16 @@ void ScummEngine::drawString(int a, const byte *msg) {
_charset->_left -= _charset->getStringWidth(a, buf) / 2;
}
- if (_game.version >= 5 && !buf[0]) {
- buf[0] = ' ';
- buf[1] = 0;
+ if (!buf[0]) {
+ if (_game.version >= 5) {
+ buf[0] = ' ';
+ buf[1] = 0;
+ } else {
+ _charset->_str.left = _charset->_left;
+ _charset->_str.top = _charset->_top;
+ _charset->_str.right = _charset->_left;
+ _charset->_str.bottom = _charset->_top;
+ }
}
for (i = 0; (c = buf[i++]) != 0;) {