From d7bbe3a6c51d2876b95ffcdcf17ac397ab005c51 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Wed, 13 Jan 2016 22:13:56 +0100 Subject: WAGE: Fix submenu delimiter rendering --- engines/wage/menu.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/engines/wage/menu.cpp b/engines/wage/menu.cpp index e9557a5c80..9a2101c206 100644 --- a/engines/wage/menu.cpp +++ b/engines/wage/menu.cpp @@ -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, @@ -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); @@ -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; } -- cgit v1.2.3