[Scummvm-git-logs] scummvm master -> 2af18f7a914f699c75392644c96c4497476ff5d3
orgads
noreply at scummvm.org
Sun Aug 14 19:41:53 UTC 2022
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:
2af18f7a91 SCUMM: MONKEY2: align library cards to the right
Commit: 2af18f7a914f699c75392644c96c4497476ff5d3
https://github.com/scummvm/scummvm/commit/2af18f7a914f699c75392644c96c4497476ff5d3
Author: BLooperZ (blooperz at users.noreply.github.com)
Date: 2022-08-14T22:41:50+03:00
Commit Message:
SCUMM: MONKEY2: align library cards to the right
Changed paths:
engines/scumm/string.cpp
diff --git a/engines/scumm/string.cpp b/engines/scumm/string.cpp
index 36b7dfca47e..ee7f682c741 100644
--- a/engines/scumm/string.cpp
+++ b/engines/scumm/string.cpp
@@ -541,6 +541,8 @@ bool ScummEngine::newLine() {
} else if (_isRTL) {
if (_game.id == GID_MANIAC || ((_game.id == GID_MONKEY || _game.id == GID_MONKEY2) && _charset->getCurID() == 4)) {
_nextLeft = _screenWidth - _charset->getStringWidth(0, _charsetBuffer + _charsetBufPos) - _nextLeft;
+ } else if (_game.id == GID_MONKEY2 && _charset->getCurID() == 5) {
+ _nextLeft += _screenWidth - 210 - _charset->getStringWidth(0, _charsetBuffer + _charsetBufPos);
}
}
if (_game.version == 0) {
@@ -804,6 +806,8 @@ void ScummEngine::CHARSET_1() {
} else if (_isRTL) {
if (_game.id == GID_MANIAC || ((_game.id == GID_MONKEY || _game.id == GID_MONKEY2) && _charset->getCurID() == 4)) {
_nextLeft = _screenWidth - _charset->getStringWidth(0, _charsetBuffer + _charsetBufPos) - _nextLeft;
+ } else if (_game.id == GID_MONKEY2 && _charset->getCurID() == 5) {
+ _nextLeft += _screenWidth - 210 - _charset->getStringWidth(0, _charsetBuffer + _charsetBufPos);
}
}
More information about the Scummvm-git-logs
mailing list