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)


Origin commit data
------------------
Commit: 13d7ec55a5
Author: vanhofen <vanhofen@gmx.de>
Date: 2015-02-20 (Fri, 20 Feb 2015)

Origin message was:
------------------
- 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:
vanhofen
2015-02-20 08:23:07 +01:00
parent b9b287018a
commit f3fdaafa15

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;