diff options
author | Florian Kagerer | 2009-09-26 21:17:47 +0000 |
---|---|---|
committer | Florian Kagerer | 2009-09-26 21:17:47 +0000 |
commit | 00504a893b3039ede85668243ef9cf54901494c3 (patch) | |
tree | db0561504c1d04bd7ef790e97225cc328f4ccd71 /engines/kyra/gui_lol.cpp | |
parent | 5d17bae1208012d3f8213ac43d10481a6776c2f7 (diff) | |
download | scummvm-rg350-00504a893b3039ede85668243ef9cf54901494c3.tar.gz scummvm-rg350-00504a893b3039ede85668243ef9cf54901494c3.tar.bz2 scummvm-rg350-00504a893b3039ede85668243ef9cf54901494c3.zip |
LOL/PC-98: fix menu colors
svn-id: r44381
Diffstat (limited to 'engines/kyra/gui_lol.cpp')
-rw-r--r-- | engines/kyra/gui_lol.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/engines/kyra/gui_lol.cpp b/engines/kyra/gui_lol.cpp index 1518ba2e4b..4f8c373fd2 100644 --- a/engines/kyra/gui_lol.cpp +++ b/engines/kyra/gui_lol.cpp @@ -1936,6 +1936,7 @@ int LoLEngine::clickedStatusIcon(Button *button) { GUI_LoL::GUI_LoL(LoLEngine *vm) : GUI(vm), _vm(vm), _screen(vm->_screen) { _scrollUpFunctor = BUTTON_FUNCTOR(GUI_LoL, this, &GUI_LoL::scrollUp); _scrollDownFunctor = BUTTON_FUNCTOR(GUI_LoL, this, &GUI_LoL::scrollDown); + _redrawButtonFunctor = BUTTON_FUNCTOR(GUI, this, &GUI::redrawButtonCallback); _redrawShadedButtonFunctor = BUTTON_FUNCTOR(GUI, this, &GUI::redrawShadedButtonCallback); @@ -2279,7 +2280,7 @@ int GUI_LoL::processButtonList(Button *buttonList, uint16 inputFlag, int8 mouseW } int GUI_LoL::redrawButtonCallback(Button *button) { - if (!_displayMenu) + if (!_displayMenu || _vm->gameFlags().use16ColorMode) return 0; _screen->drawBox(button->x + 1, button->y + 1, button->x + button->width - 1, button->y + button->height - 1, 225); @@ -2287,7 +2288,7 @@ int GUI_LoL::redrawButtonCallback(Button *button) { } int GUI_LoL::redrawShadedButtonCallback(Button *button) { - if (!_displayMenu) + if (!_displayMenu || _vm->gameFlags().use16ColorMode) return 0; _screen->drawShadedBox(button->x, button->y, button->x + button->width, button->y + button->height, 223, 227, Screen::kShadeTypeLol); @@ -2452,7 +2453,7 @@ int GUI_LoL::runMenu(Menu &menu) { _screen->updateScreen(); } - if (_currentMenu == &_mainMenu) { + if (_currentMenu == &_mainMenu && !_vm->gameFlags().use16ColorMode) { Screen::FontId f = _screen->setFont(Screen::FID_6_FNT); _screen->fprintString("%s", menu.x + 8, menu.y + menu.height - 12, 204, 0, 8, gScummVMVersion); _screen->setFont(f); @@ -2580,7 +2581,7 @@ void GUI_LoL::setupSavegameNames(Menu &menu, int num) { } void GUI_LoL::printMenuText(const char *str, int x, int y, uint8 c0, uint8 c1, uint8 flags, Screen::FontId font) { - _screen->fprintString("%s", x, y, c0, c1, flags, str); + _screen->fprintString("%s", x, y, c0, c1, _vm->gameFlags().use16ColorMode ? flags & 3 : flags, str); } int GUI_LoL::getMenuCenterStringX(const char *str, int x1, int x2) { |