[Scummvm-git-logs] scummvm master -> 206e96bad884ed237b87f333c2b6b0e548def5ce
orgads
noreply at scummvm.org
Tue Dec 14 20:15:48 UTC 2021
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
206e96bad8 SCUMM: Fix RTL indentation for multiline verbs
Commit: 206e96bad884ed237b87f333c2b6b0e548def5ce
https://github.com/scummvm/scummvm/commit/206e96bad884ed237b87f333c2b6b0e548def5ce
Author: Orgad Shaneh (orgads at gmail.com)
Date: 2021-12-14T22:15:45+02:00
Commit Message:
SCUMM: Fix RTL indentation for multiline verbs
Changed paths:
engines/scumm/string.cpp
diff --git a/engines/scumm/string.cpp b/engines/scumm/string.cpp
index c4b3bf2f19..04700505e3 100644
--- a/engines/scumm/string.cpp
+++ b/engines/scumm/string.cpp
@@ -1128,7 +1128,7 @@ void ScummEngine::drawString(int a, const byte *msg) {
if (_game.id != GID_INDY4 || buf[0] == 127) {
if (_game.id == GID_INDY4)
buf[0] = 32;
- _charset->_left = _screenWidth - _charset->_startLeft - _charset->getStringWidth(a, buf);
+ _charset->_left = _screenWidth - _charset->_startLeft - _charset->getStringWidth(1, buf);
}
}
@@ -1173,7 +1173,7 @@ void ScummEngine::drawString(int a, const byte *msg) {
if (_charset->_center) {
_charset->_left = _charset->_startLeft - _charset->getStringWidth(a, buf + i);
} else if (_game.version >= 4 && _game.version < 7 && _game.heversion == 0 && _language == Common::HE_ISR) {
- _charset->_left = _screenWidth - _charset->_startLeft - _charset->getStringWidth(a, buf + i);
+ _charset->_left = _screenWidth - _charset->_startLeft - _charset->getStringWidth(1, buf + i);
} else {
_charset->_left = _charset->_startLeft;
}
More information about the Scummvm-git-logs
mailing list