diff options
author | Johannes Schickel | 2012-03-05 20:02:05 +0100 |
---|---|---|
committer | Johannes Schickel | 2012-03-05 20:08:59 +0100 |
commit | 9671b44df8ecd1db46758508b1303d8ab3f515dd (patch) | |
tree | e0d78f84659e53b49ae6628de6b2aa21361afa78 /engines/kyra/kyra_rpg.cpp | |
parent | 865c54c125f0b5b0af1cd251cf07ec596dd4631a (diff) | |
download | scummvm-rg350-9671b44df8ecd1db46758508b1303d8ab3f515dd.tar.gz scummvm-rg350-9671b44df8ecd1db46758508b1303d8ab3f515dd.tar.bz2 scummvm-rg350-9671b44df8ecd1db46758508b1303d8ab3f515dd.zip |
KYRA: Some formatting fixes.
Diffstat (limited to 'engines/kyra/kyra_rpg.cpp')
-rw-r--r-- | engines/kyra/kyra_rpg.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/engines/kyra/kyra_rpg.cpp b/engines/kyra/kyra_rpg.cpp index 8857f64f7e..f1d9550e8f 100644 --- a/engines/kyra/kyra_rpg.cpp +++ b/engines/kyra/kyra_rpg.cpp @@ -217,11 +217,11 @@ void KyraRpgEngine::drawDialogueButtons() { if (gameFlags().use16ColorMode) { gui_drawBox(x, ((_dialogueButtonYoffs + _dialogueButtonPosY[i]) & ~7) - 1, 74, 10, 0xee, 0xcc, -1); screen()->printText(_dialogueButtonString[i], (x + 37 - (screen()->getTextWidth(_dialogueButtonString[i])) / 2) & ~3, - ((_dialogueButtonYoffs + _dialogueButtonPosY[i]) + 2) & ~7, _dialogueHighlightedButton == i ? 0xc1 : 0xe1, 0); + ((_dialogueButtonYoffs + _dialogueButtonPosY[i]) + 2) & ~7, _dialogueHighlightedButton == i ? 0xc1 : 0xe1, 0); } else { gui_drawBox(x, (_dialogueButtonYoffs + _dialogueButtonPosY[i]), _dialogueButtonWidth, guiSettings()->buttons.height, guiSettings()->colors.frame1, guiSettings()->colors.frame2, guiSettings()->colors.fill); screen()->printText(_dialogueButtonString[i], x + (_dialogueButtonWidth >> 1) - (screen()->getTextWidth(_dialogueButtonString[i])) / 2, - (_dialogueButtonYoffs + _dialogueButtonPosY[i]) + 2, _dialogueHighlightedButton == i ? _dialogueButtonLabelColor1 : _dialogueButtonLabelColor2, 0); + (_dialogueButtonYoffs + _dialogueButtonPosY[i]) + 2, _dialogueHighlightedButton == i ? _dialogueButtonLabelColor1 : _dialogueButtonLabelColor2, 0); } } screen()->setFont(of); @@ -255,11 +255,11 @@ uint16 KyraRpgEngine::processDialogue() { } if (snd_updateCharacterSpeech() != 2) { - res = 1; - if (!shouldQuit()) { - removeInputTop(); - gui_notifyButtonListChanged(); - } + res = 1; + if (!shouldQuit()) { + removeInputTop(); + gui_notifyButtonListChanged(); + } } } else { int e = checkInput(0, false, 0) & 0xFF; @@ -362,6 +362,6 @@ void KyraRpgEngine::updateEnvironmentalSfx(int soundId) { snd_processEnvironmentalSoundEffect(soundId, _currentBlock); } -} // End of namespace Kyra +} // End of namespace Kyra #endif // ENABLE_EOB || ENABLE_LOL |