From 19d5aa25dc9997d9c3527e1c3326ed179331f836 Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Mon, 10 Aug 2009 18:03:37 +0000 Subject: Fix GUI button outline colors in Kyra1 Amiga. svn-id: r43213 --- engines/kyra/gui.cpp | 10 ++++++++-- engines/kyra/gui_lok.cpp | 1 - 2 files changed, 8 insertions(+), 3 deletions(-) (limited to 'engines/kyra') diff --git a/engines/kyra/gui.cpp b/engines/kyra/gui.cpp index f5651da006..cc1add9ce7 100644 --- a/engines/kyra/gui.cpp +++ b/engines/kyra/gui.cpp @@ -330,7 +330,10 @@ int GUI::redrawButtonCallback(Button *button) { return 0; _screen->hideMouse(); - _screen->drawBox(button->x + 1, button->y + 1, button->x + button->width - 1, button->y + button->height - 1, 0xF8); + if (_vm->gameFlags().platform == Common::kPlatformAmiga) + _screen->drawBox(button->x + 1, button->y + 1, button->x + button->width - 1, button->y + button->height - 1, 17); + else + _screen->drawBox(button->x + 1, button->y + 1, button->x + button->width - 1, button->y + button->height - 1, 0xF8); _screen->showMouse(); return 0; @@ -341,7 +344,10 @@ int GUI::redrawShadedButtonCallback(Button *button) { return 0; _screen->hideMouse(); - _screen->drawShadedBox(button->x, button->y, button->x + button->width, button->y + button->height, 0xF9, 0xFA); + if (_vm->gameFlags().platform == Common::kPlatformAmiga) + _screen->drawShadedBox(button->x, button->y, button->x + button->width, button->y + button->height, 31, 18); + else + _screen->drawShadedBox(button->x, button->y, button->x + button->width, button->y + button->height, 0xF9, 0xFA); _screen->showMouse(); return 0; diff --git a/engines/kyra/gui_lok.cpp b/engines/kyra/gui_lok.cpp index e90d6c7241..9ef20ba8a3 100644 --- a/engines/kyra/gui_lok.cpp +++ b/engines/kyra/gui_lok.cpp @@ -457,7 +457,6 @@ int GUI_LoK::buttonMenuCallback(Button *caller) { return 0; } - // XXX if (_vm->gameFlags().platform == Common::kPlatformAmiga) { _screen->setPaletteIndex(0x10, 0x3F, 0x3F, 0x3F); _screen->setInterfacePalette(_screen->getPalette(1), 0x3F, 0x3F, 0x3F); -- cgit v1.2.3