aboutsummaryrefslogtreecommitdiff
path: root/engines/hugo
diff options
context:
space:
mode:
authorArnaud Boutonné2011-01-04 14:18:43 +0000
committerArnaud Boutonné2011-01-04 14:18:43 +0000
commit2477c733dae07de28eb172826b6b69408c49f0c1 (patch)
treed43f976a7e96be85736d34831a8210d6a606adbb /engines/hugo
parentd050b811bb27e1c552cf42af8c9890653c32db3e (diff)
downloadscummvm-rg350-2477c733dae07de28eb172826b6b69408c49f0c1.tar.gz
scummvm-rg350-2477c733dae07de28eb172826b6b69408c49f0c1.tar.bz2
scummvm-rg350-2477c733dae07de28eb172826b6b69408c49f0c1.zip
HUGO: Use several 'off' buttons in the menu
svn-id: r55117
Diffstat (limited to 'engines/hugo')
-rw-r--r--engines/hugo/menu.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/hugo/menu.cpp b/engines/hugo/menu.cpp
index 26e0e0cbdb..31d874995a 100644
--- a/engines/hugo/menu.cpp
+++ b/engines/hugo/menu.cpp
@@ -121,14 +121,14 @@ void TopMenu::reflowLayout() {
_inventButton->resize(x * scale, y * scale, kButtonWidth * scale, kButtonHeight * scale);
x += kButtonWidth + kButtonPad;
- // Set the graphics to the 'on' buttons
+ // Set the graphics to the 'on' buttons, except for the variable ones
_whatButton->setGfx(arrayBmp[4 * kMenuWhat + scale - 1]);
- _musicButton->setGfx(arrayBmp[4 * kMenuMusic + scale - 1]);
- _soundFXButton->setGfx(arrayBmp[4 * kMenuSoundFX + scale - 1]);
+ _musicButton->setGfx(arrayBmp[4 * kMenuMusic + scale - 1 + ((_config.musicFl) ? 0 : 2)]);
+ _soundFXButton->setGfx(arrayBmp[4 * kMenuSoundFX + scale - 1 + ((_config.soundFl) ? 0 : 2)]);
_loadButton->setGfx(arrayBmp[4 * kMenuLoad + scale - 1]);
_saveButton->setGfx(arrayBmp[4 * kMenuSave + scale - 1]);
_recallButton->setGfx(arrayBmp[4 * kMenuRecall + scale - 1]);
- _turboButton->setGfx(arrayBmp[4 * kMenuTurbo + scale - 1]);
+ _turboButton->setGfx(arrayBmp[4 * kMenuTurbo + scale - 1 + ((_config.turboFl) ? 0 : 2)]);
_lookButton->setGfx(arrayBmp[4 * kMenuLook + scale - 1]);
_inventButton->setGfx(arrayBmp[4 * kMenuInventory + scale - 1]);
}