Skip to content

Commit

Permalink
fix menu item draw - rect was too small
Browse files Browse the repository at this point in the history
  • Loading branch information
RadekVana committed Feb 2, 2021
1 parent ba48864 commit 065dc15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/guiapi/src/window_menu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ void window_menu_t::printItem(const size_t visible_count, IWindowMenuItem *item,

uint16_t rc_w = rect.Width() - (GuiDefaults::MenuHasScrollbar ? GuiDefaults::MenuScrollbarWidth : 0);
Rect16 rc = { rect.Left(), int16_t(rect.Top() + visible_count * item_height),
rc_w, uint16_t(item_height - 1) }; // 1 pixel height for menu item delimeter
rc_w, uint16_t(item_height) }; // TODO what was this? - uint16_t(item_height - 1) }; // 1 pixel height for menu item delimeter

if (rect.Contain(rc)) {

Expand Down

0 comments on commit 065dc15

Please sign in to comment.