Skip to content

Commit

Permalink
WAGE: Fix submenu delimiter rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
sev- committed Jan 13, 2016
1 parent b34308a commit d7bbe3a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion engines/wage/menu.cpp
Expand Up @@ -79,6 +79,7 @@ struct MenuItem {
};

static byte fillPattern[8] = { 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff };
static byte fillPatternStripes[8] = { 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa };

enum {
kMenuActionAbout,
Expand Down Expand Up @@ -123,6 +124,7 @@ struct MenuData {

Menu::Menu(Gui *gui) : _gui(gui) {
_patterns.push_back(fillPattern);
_patterns.push_back(fillPatternStripes);

MenuItem *about = new MenuItem(_gui->_builtInFonts ? "\xa9" : "\xf0"); // (c) Symbol as the most resembling apple
_items.push_back(about);
Expand Down Expand Up @@ -296,7 +298,7 @@ void Menu::renderSubmenu(MenuItem *menu) {
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);
Design::drawHLine(&_gui->_screen, r->left, r->right, y + kMenuDropdownItemHeight / 2, 1, kColorBlack, _patterns, 2);

y += kMenuDropdownItemHeight;
}
Expand Down

0 comments on commit d7bbe3a

Please sign in to comment.