From f541eb050b2c5942a01d711e958d4521cf3794ec Mon Sep 17 00:00:00 2001 From: "[CST] Focus" Date: Fri, 6 Mar 2015 13:50:28 +0300 Subject: [PATCH] gui/imageinfo.cpp: disable screen saving Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/42d3ffb10706f6bff20581034be766d67ffbadaa Author: [CST] Focus Date: 2015-03-06 (Fri, 06 Mar 2015) ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- src/gui/imageinfo.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/gui/imageinfo.cpp b/src/gui/imageinfo.cpp index 43ceb3240..c99fdd382 100644 --- a/src/gui/imageinfo.cpp +++ b/src/gui/imageinfo.cpp @@ -201,7 +201,7 @@ void CImageInfo::ShowWindow() InitInfoText(getLicenseText()); //paint window - cc_win->paint(); + cc_win->paint(CC_SAVE_SCREEN_NO); } //prepare minitv @@ -368,6 +368,7 @@ void CImageInfo::InitInfoText(const std::string& text) cc_lic = new CComponentsInfoBox(CC_CENTERED, CC_APPEND, w_body-2*item_offset, h_txt); cc_lic->setSpaceOffset(1); cc_lic->setText(text, CTextBox::TOP | CTextBox::AUTO_WIDTH | CTextBox::SCROLL, g_Font[SNeutrinoSettings::FONT_TYPE_MENU_HINT]); + cc_lic->doPaintTextBoxBg(true); //add text to container if (!cc_lic->isAdded()) @@ -381,12 +382,12 @@ void CImageInfo::ScrollLic(bool scrollDown) //get the textbox instance from infobox object and use CTexBbox scroll methods CTextBox* ctb = cc_lic->cctext->getCTextBoxObject(); if (ctb) { - ctb->enableBackgroundPaint(true); + //ctb->enableBackgroundPaint(true); if (scrollDown) ctb->scrollPageDown(1); else ctb->scrollPageUp(1); - ctb->enableBackgroundPaint(false); + //ctb->enableBackgroundPaint(false); } } } @@ -395,7 +396,7 @@ void CImageInfo::hide() { printf("[CImageInfo] [%s - %d] hide...\n", __FUNCTION__, __LINE__); if (cc_win){ - cc_win->hide(); + cc_win->kill(); Clean(); } }