- menue.cpp: fix details_line hight

* former code matches only by chance and will fail, when another
  value than 2 is set in INFO_BOX_Y_OFFSET (cc_item_infobox.h)
This commit is contained in:
svenhoefer
2015-02-20 08:23:07 +01:00
parent d1ca82ab44
commit 13d7ec55a5

View File

@@ -1337,7 +1337,7 @@ void CMenuWidget::paintHint(int pos)
//init details line and infobox dimensions
int ypos1 = item->getYPosition();
int ypos1a = ypos1 + (iheight/2)-2;
int ypos2a = ypos2 + (hint_height/2) - INFO_BOX_Y_OFFSET;
int ypos2a = ypos2 + (hint_height/2)-2;
int markh = hint_height > rad*2 ? hint_height - rad*2 : hint_height;
int imarkh = iheight/2+1;