[Scummvm-git-logs] scummvm branch-2-5 -> 961a83a2b29615ad3a0355b0b0788122fce76fc9

orgads noreply at scummvm.org
Tue Dec 14 20:16:52 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:
961a83a2b2 SCUMM: Fix RTL indentation for multiline verbs


Commit: 961a83a2b29615ad3a0355b0b0788122fce76fc9
    https://github.com/scummvm/scummvm/commit/961a83a2b29615ad3a0355b0b0788122fce76fc9
Author: Orgad Shaneh (orgads at gmail.com)
Date: 2021-12-14T22:16:34+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 aa912335f5..0391e023b3 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