aboutsummaryrefslogtreecommitdiff
path: root/engines/illusions/screentext.cpp
diff options
context:
space:
mode:
authorjohndoe1232016-03-26 21:36:27 +0100
committerEugene Sandulenko2018-07-20 06:43:33 +0000
commit2bd13865285058d72e13150ab64462dbbe23163c (patch)
treed22f04f4985d51ec8554004b9f9d789db80ebadb /engines/illusions/screentext.cpp
parent9447d42fd71ce092d70fad416caf2babacf00dcd (diff)
downloadscummvm-rg350-2bd13865285058d72e13150ab64462dbbe23163c.tar.gz
scummvm-rg350-2bd13865285058d72e13150ab64462dbbe23163c.tar.bz2
scummvm-rg350-2bd13865285058d72e13150ab64462dbbe23163c.zip
ILLUSIONS: Move palette code from Screen to new ScreenPalette class
Diffstat (limited to 'engines/illusions/screentext.cpp')
-rw-r--r--engines/illusions/screentext.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/illusions/screentext.cpp b/engines/illusions/screentext.cpp
index 9fa3d4000d..0a91570859 100644
--- a/engines/illusions/screentext.cpp
+++ b/engines/illusions/screentext.cpp
@@ -128,7 +128,7 @@ bool ScreenText::insertText(uint16 *text, uint32 fontId, WidthHeight dimensions,
bool done = refreshScreenText(font, screenText->_info._dimensions, screenText->_info._offsPt,
text, screenText->_info._flags, screenText->_info._color2, screenText->_info._color1,
outTextPtr);
- _vm->_screen->setPaletteEntry(font->getColorIndex(), screenText->_info._colorR, screenText->_info._colorG, screenText->_info._colorB);
+ _vm->_screenPalette->setPaletteEntry(font->getColorIndex(), screenText->_info._colorR, screenText->_info._colorG, screenText->_info._colorB);
uint16 *textPart = screenText->_text;
while (text != outTextPtr)
@@ -157,7 +157,7 @@ void ScreenText::removeText() {
refreshScreenText(font, screenText->_info._dimensions, screenText->_info._offsPt,
screenText->_text, screenText->_info._flags, screenText->_info._color2, screenText->_info._color1,
outTextPtr);
- _vm->_screen->setPaletteEntry(font->getColorIndex(), screenText->_info._colorR, screenText->_info._colorG, screenText->_info._colorB);
+ _vm->_screenPalette->setPaletteEntry(font->getColorIndex(), screenText->_info._colorR, screenText->_info._colorG, screenText->_info._colorB);
setTextInfoPosition(screenText->_info._position);
}
}