menu: ensure also correct x-position of details line

It's possible that x pos is changeing during runtime


Origin commit data
------------------
Branch: ni/coolstream
Commit: 084fb88f50
Author: Thilo Graf <dbt@novatux.de>
Date: 2012-07-17 (Tue, 17 Jul 2012)

Origin message was:
------------------
*menu: ensure also correct x-position of details line

It's possible that x pos is changeing during runtime


------------------
This commit was generated by Migit
This commit is contained in:
2012-07-17 22:00:12 +02:00
committed by Michael Liebmann
parent 6d477610ae
commit d0dbe37f8c

View File

@@ -1055,7 +1055,7 @@ void CMenuWidget::paintHint(int pos)
if (hint_painted) {
/* clear detailsline line */
if (details_line != NULL)
details_line->hide();
details_line->restore();
/* clear info box */
if (info_box != NULL)
info_box->hide((pos == -1) ? true : false);
@@ -1084,9 +1084,9 @@ printf("paintHint: icon %s text %s\n", item->hintIcon.c_str(), g_Locale->getText
int markh = hint_height > rad*2 ? hint_height - rad*2 : hint_height;
int imarkh = iheight/2+1;
if (details_line == NULL)
if (details_line == NULL){
details_line = new CComponentsDetailLine(xpos, ypos1a, ypos2a, imarkh, markh);
else {
}else{
details_line->setXPos(xpos);
details_line->setYPos(ypos1a);
details_line->setYPosDown(ypos2a);