mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-12 20:17:49 +00:00
SCUMM: (DIG) - fix bug no. 15025
(Sentence line font has wrong colors) I am not sure if that is all the ticket is about, but that's at least how I understand it.
This commit is contained in:
parent
3afaca351a
commit
5c71c1c87b
@ -1232,7 +1232,7 @@ void ScummEngine::drawString(int a, const byte *msg) {
|
||||
bool shadowModeFlag = (vs && vs->number == kMainVirtScreen);
|
||||
|
||||
if (_game.version >= 5)
|
||||
memcpy(_charsetColorMap, _charsetData[_charset->getCurID()], 4);
|
||||
memcpy(_charsetColorMap, _charsetData[_charset->getCurID()], _game.id == GID_DIG ? sizeof(_charsetColorMap) : 4);
|
||||
|
||||
fontHeight = _charset->getFontHeight();
|
||||
|
||||
|
@ -466,6 +466,9 @@ void ScummEngine_v7::drawBlastTexts() {
|
||||
|
||||
_charset->setCurID(_blastTextQueue[i].charset);
|
||||
|
||||
if (_game.version == 7)
|
||||
memcpy(_charsetColorMap, _charsetData[_charset->getCurID()], _game.id == GID_DIG ? sizeof(_charsetColorMap) : 4);
|
||||
|
||||
if (bt.flags & kStyleWordWrap) {
|
||||
bt.rect = _wrappedTextClipRect;
|
||||
|
||||
@ -648,9 +651,11 @@ void ScummEngine_v7::displayDialog() {
|
||||
_charset->_startLeft = _charset->_left = _string[0].xpos;
|
||||
_charset->_right = _string[0].right;
|
||||
_charset->_center = _string[0].center;
|
||||
memcpy(_charsetColorMap, _charsetData[_charset->getCurID()], 4);
|
||||
}
|
||||
|
||||
if (_game.version == 7)
|
||||
memcpy(_charsetColorMap, _charsetData[_charset->getCurID()], _game.id == GID_DIG ? sizeof(_charsetColorMap) : 4);
|
||||
|
||||
if (usingOldSystem && a && a->_charset) {
|
||||
_charset->setCurID(a->_charset);
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user