diff options
author | athrxx | 2019-02-27 00:05:07 +0100 |
---|---|---|
committer | athrxx | 2019-03-06 20:48:26 +0100 |
commit | ea6f44871ba00da50b26e64d36b301dc48b1a2b7 (patch) | |
tree | 3121b3db410b6688f3eb48e997f29e119ff650ba /engines | |
parent | 8c5fcb36a5e914f9f7e694fd7ef41c7717bf39ed (diff) | |
download | scummvm-rg350-ea6f44871ba00da50b26e64d36b301dc48b1a2b7.tar.gz scummvm-rg350-ea6f44871ba00da50b26e64d36b301dc48b1a2b7.tar.bz2 scummvm-rg350-ea6f44871ba00da50b26e64d36b301dc48b1a2b7.zip |
KYRA: (EOB2/FM-TOWNS) - fix character status text glitch
Diffstat (limited to 'engines')
-rw-r--r-- | engines/kyra/gui/gui_eob.cpp | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/engines/kyra/gui/gui_eob.cpp b/engines/kyra/gui/gui_eob.cpp index b89f308c01..ae787a5df6 100644 --- a/engines/kyra/gui/gui_eob.cpp +++ b/engines/kyra/gui/gui_eob.cpp @@ -137,18 +137,27 @@ void EoBCoreEngine::gui_drawCharPortraitWithStats(int index) { gui_drawFoodStatusGraph(index); if (_currentControlMode == 1) { + Screen::FontId cf = _screen->setFont(Screen::FID_6_FNT); + int statusTxtY = 158; + if (_flags.platform == Common::kPlatformFMTowns) { + statusTxtY = 157; + _screen->setFont(Screen::FID_8_FNT); + } + if (c->hitPointsCur == -10) - _screen->printShadedText(_characterGuiStringsSt[1], 247, 158, guiSettings()->colors.guiColorLightRed, guiSettings()->colors.sfill, guiSettings()->colors.guiColorBlack); + _screen->printShadedText(_characterGuiStringsSt[1], 247, statusTxtY, guiSettings()->colors.guiColorLightRed, 0, guiSettings()->colors.guiColorBlack); else if (c->hitPointsCur < 1) - _screen->printShadedText(_characterGuiStringsSt[2], 226, 158, guiSettings()->colors.guiColorLightRed, guiSettings()->colors.sfill, guiSettings()->colors.guiColorBlack); + _screen->printShadedText(_characterGuiStringsSt[2], 226, statusTxtY, guiSettings()->colors.guiColorLightRed, 0, guiSettings()->colors.guiColorBlack); else if (c->effectFlags & 0x2000) - _screen->printShadedText(_characterGuiStringsSt[3], 220, 158, guiSettings()->colors.guiColorLightRed, guiSettings()->colors.sfill, guiSettings()->colors.guiColorBlack); + _screen->printShadedText(_characterGuiStringsSt[3], 220, statusTxtY, guiSettings()->colors.guiColorLightRed, 0, guiSettings()->colors.guiColorBlack); else if (c->flags & 2) - _screen->printShadedText(_characterGuiStringsSt[4], 235, 158, guiSettings()->colors.guiColorLightRed, guiSettings()->colors.sfill, guiSettings()->colors.guiColorBlack); + _screen->printShadedText(_characterGuiStringsSt[4], 235, statusTxtY, guiSettings()->colors.guiColorLightRed, 0, guiSettings()->colors.guiColorBlack); else if (c->flags & 4) - _screen->printShadedText(_characterGuiStringsSt[5], 232, 158, guiSettings()->colors.guiColorLightRed, guiSettings()->colors.sfill, guiSettings()->colors.guiColorBlack); + _screen->printShadedText(_characterGuiStringsSt[5], 232, statusTxtY, guiSettings()->colors.guiColorLightRed, 0, guiSettings()->colors.guiColorBlack); else if (c->flags & 8) - _screen->printShadedText(_characterGuiStringsSt[6], 232, 158, guiSettings()->colors.guiColorLightRed, guiSettings()->colors.sfill, guiSettings()->colors.guiColorBlack); + _screen->printShadedText(_characterGuiStringsSt[6], 232, statusTxtY, guiSettings()->colors.guiColorLightRed, 0, guiSettings()->colors.guiColorBlack); + + _screen->setFont(cf); for (int i = 0; i < 27; i++) gui_drawInventoryItem(i, 0, 2); |