From 07cfcc261331f8350c98753042b8fabeaf2b6797 Mon Sep 17 00:00:00 2001 From: "[CST] Focus" Date: Mon, 9 Mar 2015 13:53:56 +0300 Subject: [PATCH] gui/bedit/bouqueteditor_channels.cpp: disable screen save for infobox, fix empty paint on empty list Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/5ca50e3c673e7ba9e4d1526433c49213f633e751 Author: [CST] Focus Date: 2015-03-09 (Mon, 09 Mar 2015) ------------------ This commit was generated by Migit --- src/gui/bedit/bouqueteditor_channels.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/gui/bedit/bouqueteditor_channels.cpp b/src/gui/bedit/bouqueteditor_channels.cpp index 37eb291da..c33646742 100644 --- a/src/gui/bedit/bouqueteditor_channels.cpp +++ b/src/gui/bedit/bouqueteditor_channels.cpp @@ -173,7 +173,8 @@ void CBEChannelWidget::paint() int sbh= (sb- 4)/ sbc; int sbs= (selected/listmaxshow); - frameBuffer->paintBoxRel(x+ width- 13, ypos+ 2+ int(sbs* sbh) , 11, int(sbh), COL_MENUCONTENT_PLUS_3); + if (sbh) + frameBuffer->paintBoxRel(x+ width- 13, ypos+ 2+ int(sbs* sbh) , 11, int(sbh), COL_MENUCONTENT_PLUS_3); } void CBEChannelWidget::paintHead() @@ -219,14 +220,14 @@ std::string CBEChannelWidget::getInfoText(int index) void CBEChannelWidget::paintDetails(int index) { //details line - dline->paint(); + dline->paint(CC_SAVE_SCREEN_NO); std::string str = getInfoText(index); //info box ibox->setText(str, CTextBox::AUTO_WIDTH | CTextBox::NO_AUTO_LINEBREAK, g_Font[SNeutrinoSettings::FONT_TYPE_CHANNELLIST]); ibox->setColorBody(COL_MENUCONTENTDARK_PLUS_0); - ibox->paint(CC_SAVE_SCREEN_YES); + ibox->paint(CC_SAVE_SCREEN_NO); } void CBEChannelWidget::initItem2DetailsLine (int pos, int /*ch_index*/)