diff --git a/src/gui/widget/components.h b/src/gui/widget/components.h index 9d17015d7..78f2bed53 100644 --- a/src/gui/widget/components.h +++ b/src/gui/widget/components.h @@ -103,7 +103,7 @@ class CComponentsInfoBox : public CComponents void paint(bool do_save_bg = true, bool fullPaint = false); 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;}; }; diff --git a/src/gui/widget/menue.cpp b/src/gui/widget/menue.cpp index 4419918db..dd0b00cc1 100644 --- a/src/gui/widget/menue.cpp +++ b/src/gui/widget/menue.cpp @@ -1079,7 +1079,7 @@ void CMenuWidget::paintHint(int pos) /* clear info box */ if (info_box != NULL) if (pos == -1) - info_box->restore(true); + info_box->restore(); hint_painted = false; } if (pos < 0) @@ -1090,7 +1090,7 @@ void CMenuWidget::paintHint(int pos) if (item->hintIcon.empty() && item->hint == NONEXISTANT_LOCALE) { if (info_box != NULL) - info_box->restore(false); + info_box->restore(); return; }