Skip to content

Commit

Permalink
WAGE: Fix vertical submenu size
Browse files Browse the repository at this point in the history
  • Loading branch information
sev- committed Jan 13, 2016
1 parent b0387a4 commit b34308a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion engines/wage/gui.h
Expand Up @@ -69,7 +69,7 @@ enum {
kMenuSpacing = 13,
kMenuPadding = 16,
kMenuDropdownPadding = 12,
kMenuDropdownItemHeight = 19,
kMenuDropdownItemHeight = 15,
kMenuItemHeight = 20,
kBorderWidth = 17,
kDesktopArc = 7,
Expand Down
2 changes: 1 addition & 1 deletion engines/wage/menu.cpp
Expand Up @@ -231,7 +231,7 @@ void Menu::calcMenuBounds(MenuItem *menu) {
int x1 = menu->bbox.left;
int y1 = menu->bbox.bottom + 1;
int x2 = x1 + maxWidth + kMenuDropdownPadding * 2;
int y2 = y1 + menu->subitems.size() * kMenuDropdownItemHeight - 3;
int y2 = y1 + menu->subitems.size() * kMenuDropdownItemHeight + 2;

menu->subbbox.left = x1;
menu->subbbox.top = y1;
Expand Down

0 comments on commit b34308a

Please sign in to comment.