diff options
author | Eugene Sandulenko | 2016-01-13 22:10:55 +0100 |
---|---|---|
committer | Eugene Sandulenko | 2016-01-13 22:10:55 +0100 |
commit | b0387a4a767f48865fc8139837a44ce247e8ea66 (patch) | |
tree | 00daad2a019660c0ae3bba6b9d13a300376500b3 /engines/wage | |
parent | 00fce85c7427be7c59b24539abcc00372ea492e4 (diff) | |
download | scummvm-rg350-b0387a4a767f48865fc8139837a44ce247e8ea66.tar.gz scummvm-rg350-b0387a4a767f48865fc8139837a44ce247e8ea66.tar.bz2 scummvm-rg350-b0387a4a767f48865fc8139837a44ce247e8ea66.zip |
WAGE: Render submenu delimeter
Diffstat (limited to 'engines/wage')
-rw-r--r-- | engines/wage/menu.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/engines/wage/menu.cpp b/engines/wage/menu.cpp index 8d9518b816..bd384c89eb 100644 --- a/engines/wage/menu.cpp +++ b/engines/wage/menu.cpp @@ -275,9 +275,7 @@ void Menu::renderSubmenu(MenuItem *menu) { Design::drawFilledRect(&_gui->_screen, *r, kColorWhite, _patterns, 1); Design::drawRect(&_gui->_screen, *r, 1, kColorBlack, _patterns, 1); Design::drawVLine(&_gui->_screen, r->right + 1, r->top + 3, r->bottom + 1, 1, kColorBlack, _patterns, 1); - //Design::drawVLine(&_gui->_screen, r->right + 2, r->top + 2, r->bottom + 2, 1, kColorBlack, _patterns, 1); Design::drawHLine(&_gui->_screen, r->left + 3, r->right + 1, r->bottom + 1, 1, kColorBlack, _patterns, 1); - //Design::drawHLine(&_gui->_screen, r->left + 3, r->right + 2, r->bottom + 2, 1, kColorBlack, _patterns, 1); int x = r->left + kMenuDropdownPadding; int y = r->top + 1; @@ -289,13 +287,16 @@ void Menu::renderSubmenu(MenuItem *menu) { } int color = kColorBlack; - if (i == _activeSubItem && menu->subitems[_activeSubItem]->text.size()) { + if (i == _activeSubItem && text.size()) { color = kColorWhite; Common::Rect trect(r->left, y - (_gui->_builtInFonts ? 1 : 0), r->right, y + _font->getFontHeight()); Design::drawFilledRect(&_gui->_screen, trect, kColorBlack, _patterns, 1); } - _font->drawString(&_gui->_screen, text, x, y, r->width(), color); + if (text.size()) + _font->drawString(&_gui->_screen, text, x, y, r->width(), color); + else + Design::drawHLine(&_gui->_screen, r->left, r->right, y + kMenuDropdownItemHeight / 2, 1, kColorBlack, _patterns, 1); y += kMenuDropdownItemHeight; } |