mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-27 13:42:02 +00:00
Draw the selected menu item (currently always the first one) highlighted, i.e.
white instead of yellow. svn-id: r22676
This commit is contained in:
parent
c8d3f5a80f
commit
c1c5080fcd
@ -1042,6 +1042,7 @@ private:
|
||||
|
||||
int _musicSoundChannel;
|
||||
const char *_menuAudioFile;
|
||||
int _selectedMenuItem;
|
||||
|
||||
// gui/menu specific
|
||||
private:
|
||||
|
@ -35,6 +35,7 @@ KyraEngine_v3::KyraEngine_v3(OSystem *system) : KyraEngine(system) {
|
||||
_soundDigital = 0;
|
||||
_musicSoundChannel = -1;
|
||||
_menuAudioFile = "TITLE1.AUD";
|
||||
_selectedMenuItem = 0;
|
||||
}
|
||||
|
||||
KyraEngine_v3::~KyraEngine_v3() {
|
||||
@ -271,7 +272,8 @@ void KyraEngine_v3::drawMainMenu(const char * const *strings) {
|
||||
|
||||
for (int i = 0; i < menuTable[3]; ++i) {
|
||||
int curY = top + i * _screen->getFontHeight();
|
||||
gui_printString(strings[i], ((_screen->_curDim->w >> 1) + _screen->_curDim->sx) << 3, curY, menuTable[5], 0, 5);
|
||||
int color = (i == _selectedMenuItem) ? menuTable[6] : menuTable[5];
|
||||
gui_printString(strings[i], ((_screen->_curDim->w >> 1) + _screen->_curDim->sx) << 3, curY, color, 0, 5);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user