diff options
author | Johannes Schickel | 2009-08-10 01:32:59 +0000 |
---|---|---|
committer | Johannes Schickel | 2009-08-10 01:32:59 +0000 |
commit | 6c1bd68aed39fb48dcf72c05ce7354090ba9291a (patch) | |
tree | 4975fbcd16a6e80c2490ab38e1b1eb936221b131 | |
parent | 48e86a9e22859aaa7c31ec3a3f2e17670a991c6a (diff) | |
download | scummvm-rg350-6c1bd68aed39fb48dcf72c05ce7354090ba9291a.tar.gz scummvm-rg350-6c1bd68aed39fb48dcf72c05ce7354090ba9291a.tar.bz2 scummvm-rg350-6c1bd68aed39fb48dcf72c05ce7354090ba9291a.zip |
Fix inventory background color.
svn-id: r43193
-rw-r--r-- | engines/kyra/gui_lok.cpp | 4 | ||||
-rw-r--r-- | engines/kyra/items_lok.cpp | 2 | ||||
-rw-r--r-- | engines/kyra/text_lok.cpp | 4 |
3 files changed, 5 insertions, 5 deletions
diff --git a/engines/kyra/gui_lok.cpp b/engines/kyra/gui_lok.cpp index a6e3308082..6878f00d7b 100644 --- a/engines/kyra/gui_lok.cpp +++ b/engines/kyra/gui_lok.cpp @@ -56,7 +56,7 @@ int KyraEngine_LoK::buttonInventoryCallback(Button *caller) { return 0; } else { _screen->hideMouse(); - _screen->fillRect(_itemPosX[itemOffset], _itemPosY[itemOffset], _itemPosX[itemOffset] + 15, _itemPosY[itemOffset] + 15, 12); + _screen->fillRect(_itemPosX[itemOffset], _itemPosY[itemOffset], _itemPosX[itemOffset] + 15, _itemPosY[itemOffset] + 15, _flags.platform == Common::kPlatformAmiga ? 19 : 12); snd_playSoundEffect(0x35); setMouseItem(inventoryItem); updateSentenceCommand(_itemList[inventoryItem], _takenList[0], 179); @@ -68,7 +68,7 @@ int KyraEngine_LoK::buttonInventoryCallback(Button *caller) { if (inventoryItem != 0xFF) { snd_playSoundEffect(0x35); _screen->hideMouse(); - _screen->fillRect(_itemPosX[itemOffset], _itemPosY[itemOffset], _itemPosX[itemOffset] + 15, _itemPosY[itemOffset] + 15, 12); + _screen->fillRect(_itemPosX[itemOffset], _itemPosY[itemOffset], _itemPosX[itemOffset] + 15, _itemPosY[itemOffset] + 15, _flags.platform == Common::kPlatformAmiga ? 19 : 12); _screen->drawShape(0, _shapes[216+_itemInHand], _itemPosX[itemOffset], _itemPosY[itemOffset], 0, 0); setMouseItem(inventoryItem); updateSentenceCommand(_itemList[inventoryItem], _takenList[1], 179); diff --git a/engines/kyra/items_lok.cpp b/engines/kyra/items_lok.cpp index aef5ba5f13..83817becf8 100644 --- a/engines/kyra/items_lok.cpp +++ b/engines/kyra/items_lok.cpp @@ -879,7 +879,7 @@ void KyraEngine_LoK::redrawInventory(int page) { _screen->_curPage = page; _screen->hideMouse(); for (int i = 0; i < 10; ++i) { - _screen->fillRect(_itemPosX[i], _itemPosY[i], _itemPosX[i] + 15, _itemPosY[i] + 15, 12, page); + _screen->fillRect(_itemPosX[i], _itemPosY[i], _itemPosX[i] + 15, _itemPosY[i] + 15, _flags.platform == Common::kPlatformAmiga ? 19 : 12, page); if (_currentCharacter->inventoryItems[i] != 0xFF) { uint8 item = _currentCharacter->inventoryItems[i]; _screen->drawShape(page, _shapes[216+item], _itemPosX[i], _itemPosY[i], 0, 0); diff --git a/engines/kyra/text_lok.cpp b/engines/kyra/text_lok.cpp index b82d61a63a..d8a6a1ae91 100644 --- a/engines/kyra/text_lok.cpp +++ b/engines/kyra/text_lok.cpp @@ -322,7 +322,7 @@ void KyraEngine_LoK::characterSays(int vocFile, const char *chatStr, int8 charNu void KyraEngine_LoK::drawSentenceCommand(const char *sentence, int color) { _screen->hideMouse(); - _screen->fillRect(8, 143, 311, 152, 12); + _screen->fillRect(8, 143, 311, 152, _flags.platform == Common::kPlatformAmiga ? 19 : 12); // TODO: Amiga support if ((_startSentencePalIndex != color || _fadeText != false) && _flags.platform != Common::kPlatformAmiga) { @@ -334,7 +334,7 @@ void KyraEngine_LoK::drawSentenceCommand(const char *sentence, int color) { _startSentencePalIndex = 0; } - _text->printText(sentence, 8, 143, 0xFF, 12, 0); + _text->printText(sentence, 8, 143, 0xFF, _flags.platform == Common::kPlatformAmiga ? 19 : 12, 0); _screen->showMouse(); if (_flags.platform != Common::kPlatformAmiga) setTextFadeTimerCountdown(15); |