[Scummvm-git-logs] scummvm master -> 664c0b278a36a9865406dbbb08b417dede090801
athrxx
noreply at scummvm.org
Sat Sep 21 10:43:23 UTC 2024
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:
664c0b278a SCI: fix another part of bug no. 15375
Commit: 664c0b278a36a9865406dbbb08b417dede090801
https://github.com/scummvm/scummvm/commit/664c0b278a36a9865406dbbb08b417dede090801
Author: athrxx (athrxx at scummvm.org)
Date: 2024-09-21T12:41:58+02:00
Commit Message:
SCI: fix another part of bug no. 15375
(SCI: SQ4 Korean text not rendered after refactor)
This fixes the issue with kDisplay, basically in the
same way as it is done for the controls.
Changed paths:
engines/sci/graphics/paint16.cpp
diff --git a/engines/sci/graphics/paint16.cpp b/engines/sci/graphics/paint16.cpp
index 2518f072c62..db6dbb7a3ab 100644
--- a/engines/sci/graphics/paint16.cpp
+++ b/engines/sci/graphics/paint16.cpp
@@ -600,9 +600,17 @@ reg_t GfxPaint16::kernelDisplay(const char *text, uint16 languageSplitter, int a
_ports->penColor(colorPen);
}
- _text16->Box(text, languageSplitter, false, rect, alignment, -1);
- if (_screen->_picNotValid == 0 && bRedraw)
+ // To make sure that the Korean hires font does not get overdrawn we update the display area before printing
+ // the text. The PC-98 versions use a lowres font here, so this fix is only for the Korean fan translation.
+ if (g_sci->getLanguage() == Common::KO_KOR && !_screen->_picNotValid && bRedraw)
bitsShow(rect);
+
+ _text16->Box(text, languageSplitter, g_sci->getLanguage() == Common::KO_KOR, rect, alignment, -1);
+
+ // See comment above.
+ if (g_sci->getLanguage() != Common::KO_KOR && _screen->_picNotValid == 0 && bRedraw)
+ bitsShow(rect);
+
// restoring port and cursor pos
Port *currport = _ports->getPort();
uint16 tTop = currport->curTop;
More information about the Scummvm-git-logs
mailing list