* Fix the position of CComponentsDetailLine

This commit is contained in:
micha-bbg
2012-07-17 19:18:59 +02:00
parent fd1ec29d83
commit ea33afbcf8
2 changed files with 6 additions and 1 deletions

View File

@@ -63,6 +63,7 @@ class CComponentsDetailLine : public CComponents
void hide();
void setColor(fb_pixel_t color1, fb_pixel_t color2){col1 = color1; col2 = color2;};
void setYPosDown(const int& y_pos_down){y_down = y_pos_down;};
void setHMarkDown(const int& h_mark_down_){h_mark_down = h_mark_down_;};
};
class CComponentsInfoBox : public CComponents

View File

@@ -1113,8 +1113,12 @@ printf("paintHint: icon %s text %s\n", item->hintIcon.c_str(), g_Locale->getText
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);
details_line->setHMarkDown(markh);
}
details_line->paint();
if (info_box == NULL)