gui/imageinfo.cpp: disable screen saving

This commit is contained in:
[CST] Focus
2015-03-06 13:50:28 +03:00
parent ea1c533ef9
commit 42d3ffb107

View File

@@ -201,7 +201,7 @@ void CImageInfo::ShowWindow()
InitInfoText(getLicenseText()); InitInfoText(getLicenseText());
//paint window //paint window
cc_win->paint(); cc_win->paint(CC_SAVE_SCREEN_NO);
} }
//prepare minitv //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 = new CComponentsInfoBox(CC_CENTERED, CC_APPEND, w_body-2*item_offset, h_txt);
cc_lic->setSpaceOffset(1); cc_lic->setSpaceOffset(1);
cc_lic->setText(text, CTextBox::TOP | CTextBox::AUTO_WIDTH | CTextBox::SCROLL, g_Font[SNeutrinoSettings::FONT_TYPE_MENU_HINT]); 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 //add text to container
if (!cc_lic->isAdded()) 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 //get the textbox instance from infobox object and use CTexBbox scroll methods
CTextBox* ctb = cc_lic->cctext->getCTextBoxObject(); CTextBox* ctb = cc_lic->cctext->getCTextBoxObject();
if (ctb) { if (ctb) {
ctb->enableBackgroundPaint(true); //ctb->enableBackgroundPaint(true);
if (scrollDown) if (scrollDown)
ctb->scrollPageDown(1); ctb->scrollPageDown(1);
else else
ctb->scrollPageUp(1); ctb->scrollPageUp(1);
ctb->enableBackgroundPaint(false); //ctb->enableBackgroundPaint(false);
} }
} }
} }
@@ -395,7 +396,7 @@ void CImageInfo::hide()
{ {
printf("[CImageInfo] [%s - %d] hide...\n", __FUNCTION__, __LINE__); printf("[CImageInfo] [%s - %d] hide...\n", __FUNCTION__, __LINE__);
if (cc_win){ if (cc_win){
cc_win->hide(); cc_win->kill();
Clean(); Clean();
} }
} }