From c864b01a1b24ce6a651fda0c64f8ea78804d349f Mon Sep 17 00:00:00 2001 From: Michael Liebmann Date: Tue, 24 Jul 2012 21:25:28 +0200 Subject: [PATCH] CComponentsInfoBox: Small display bug fixed Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/bc8128d8d7cde9b77cfdc57a436e340c493aa328 Author: Michael Liebmann Date: 2012-07-24 (Tue, 24 Jul 2012) Origin message was: ------------------ * CComponentsInfoBox: Small display bug fixed ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- src/gui/widget/components.h | 2 +- src/gui/widget/menue.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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; }