[Scummvm-git-logs] scummvm master -> 99e213be1f7a9b08b6b4f04a7c763801541a5c90
AndywinXp
noreply at scummvm.org
Sun Sep 18 20:06:45 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:
99e213be1f SCUMM: GUI: remove forced alignment
Commit: 99e213be1f7a9b08b6b4f04a7c763801541a5c90
https://github.com/scummvm/scummvm/commit/99e213be1f7a9b08b6b4f04a7c763801541a5c90
Author: BLooperZ (blooperz at users.noreply.github.com)
Date: 2022-09-18T22:06:41+02:00
Commit Message:
SCUMM: GUI: remove forced alignment
Changed paths:
engines/scumm/string_v7.cpp
diff --git a/engines/scumm/string_v7.cpp b/engines/scumm/string_v7.cpp
index 46989e9db23..3471f54731b 100644
--- a/engines/scumm/string_v7.cpp
+++ b/engines/scumm/string_v7.cpp
@@ -449,12 +449,6 @@ void ScummEngine_v7::drawTextImmediately(const byte *text, Common::Rect *clipRec
_charset->setCurID(charset);
- // If a Hebrew String comes up that is still marked as kStyleAlignLeft we fix it here...
- if (_language == Common::HE_ISR && !(flags & (kStyleAlignCenter | kStyleAlignRight))) {
- effFlags = (TextStyleFlags)(flags | kStyleAlignRight);
- effX = _screenWidth - 1 - effX;
- }
-
_textV7->drawString((const char *)msg, (byte *)vs->getPixels(0, _screenTop), rect, effX, y, vs->pitch, color, effFlags);
rect.top += _screenTop;
@@ -470,12 +464,6 @@ void ScummEngine_v7::drawBlastTexts() {
_charset->setCurID(_blastTextQueue[i].charset);
- // If a Hebrew String comes up that is still marked as kStyleAlignLeft we fix it here...
- if (_language == Common::HE_ISR && !(bt.flags & (kStyleAlignCenter | kStyleAlignRight))) {
- bt.flags = (TextStyleFlags)(bt.flags | kStyleAlignRight);
- bt.xpos = _screenWidth - 1 - bt.xpos;
- }
-
if (bt.flags & kStyleWordWrap) {
bt.rect = _wrappedTextClipRect;
More information about the Scummvm-git-logs
mailing list