* CComponentsInfoBox: Small display bug fixed

This commit is contained in:
micha-bbg
2012-07-24 21:25:28 +02:00
parent 957d9c6555
commit bc8128d8d7
2 changed files with 3 additions and 3 deletions

View File

@@ -103,7 +103,7 @@ class CComponentsInfoBox : public CComponents
void paint(bool do_save_bg = true, bool fullPaint = false); void paint(bool do_save_bg = true, bool fullPaint = false);
void hide(); void hide();
void restore(bool clear_); void restore(bool clear_ = true);
void setColor(fb_pixel_t color_frame, fb_pixel_t color_body, fb_pixel_t color_shadow){col_frame = color_frame; col_body = color_body; col_shadow = color_shadow;}; void setColor(fb_pixel_t color_frame, fb_pixel_t color_body, fb_pixel_t color_shadow){col_frame = color_frame; col_body = color_body; col_shadow = color_shadow;};
}; };

View File

@@ -1079,7 +1079,7 @@ void CMenuWidget::paintHint(int pos)
/* clear info box */ /* clear info box */
if (info_box != NULL) if (info_box != NULL)
if (pos == -1) if (pos == -1)
info_box->restore(true); info_box->restore();
hint_painted = false; hint_painted = false;
} }
if (pos < 0) if (pos < 0)
@@ -1090,7 +1090,7 @@ void CMenuWidget::paintHint(int pos)
if (item->hintIcon.empty() && item->hint == NONEXISTANT_LOCALE) { if (item->hintIcon.empty() && item->hint == NONEXISTANT_LOCALE) {
if (info_box != NULL) if (info_box != NULL)
info_box->restore(false); info_box->restore();
return; return;
} }