From c49dd9ab0253232fa9d836abce9b4e8419ea778f Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Wed, 3 Apr 2013 10:43:13 +0200 Subject: [PATCH] CNeutrinoEventList: use CComponentsText instead CComponentsInfoBox add doPaintBg(false), causes no paint or repaint and save of item background. CC-Items comes with its own hide(), but it's not very sensefull to store or paint background here. NOTE: CComponentsText is more of appropriate for embedded text items than CComponentsInfoBox. CComponentsInfoBox is more made for hint or messageboxes. Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/399dbad3507694e7f56d1d6924810d70d0f02c3e Author: Thilo Graf Date: 2013-04-03 (Wed, 03 Apr 2013) --- src/gui/eventlist.cpp | 5 +++-- src/gui/eventlist.h | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/gui/eventlist.cpp b/src/gui/eventlist.cpp index c0ff43908..231345bf1 100644 --- a/src/gui/eventlist.cpp +++ b/src/gui/eventlist.cpp @@ -279,7 +279,7 @@ int CNeutrinoEventList::exec(const t_channel_id channel_id, const std::string& c infozone_width = full_width - width; // init right info_zone - cc_infozone = new CComponentsInfoBox(x+width+5, y+theight+10, infozone_width-10, listmaxshow*fheight-20); + cc_infozone = new CComponentsText(x+width+5, y+theight+10, infozone_width-10, listmaxshow*fheight-20); int res = menu_return::RETURN_REPAINT; //printf("CNeutrinoEventList::exec: channel_id %llx\n", channel_id); @@ -812,7 +812,8 @@ void CNeutrinoEventList::paintDescription(int index) infozone_text = g_Locale->getText(LOCALE_EPGLIST_NOEVENTS); cc_infozone->setText(infozone_text, CTextBox::TOP, g_Font[SNeutrinoSettings::FONT_TYPE_EVENTLIST_ITEMLARGE]); - cc_infozone->paint(); + cc_infozone->doPaintBg(false); + cc_infozone->paint(CC_SAVE_SCREEN_NO); } void CNeutrinoEventList::paintHead(std::string _channelname, std::string _channelname_prev, std::string _channelname_next) diff --git a/src/gui/eventlist.h b/src/gui/eventlist.h index e492b72de..15cc6c065 100644 --- a/src/gui/eventlist.h +++ b/src/gui/eventlist.h @@ -101,7 +101,7 @@ class CNeutrinoEventList std::string infozone_text; int sort_mode; event_id_t item_event_ID; - CComponentsInfoBox *cc_infozone; + CComponentsText *cc_infozone; void paintItem(unsigned pos, t_channel_id channel_id = 0); void paintDescription(int index);