infoviewer: add weather (inactive)

Origin commit data
------------------
Branch: ni/coolstream
Commit: e9fc84807f
Author: vanhofen <vanhofen@gmx.de>
Date: 2022-01-14 (Fri, 14 Jan 2022)

Origin message was:
------------------
- infoviewer: add weather (inactive)

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
vanhofen
2022-01-14 22:43:24 +01:00
parent 941d38df57
commit 05b2fca409
2 changed files with 11 additions and 0 deletions

View File

@@ -111,6 +111,7 @@ CInfoViewer::CInfoViewer ()
info_CurrentNext.flags = 0;
frameBuffer = CFrameBuffer::getInstance();
infoViewerBB = CInfoViewerBB::getInstance();
weather = CWeather::getInstance();
ecmInfoBox = NULL; //NI
md5_ecmInfo = "0"; //NI
@@ -621,6 +622,8 @@ void CInfoViewer::showMovieTitle(const int playState, const t_channel_id &Channe
if (!zap_mode)
infoViewerBB->paintshowButtonBar();
//weather->show(BoxStartX, g_settings.screen_StartY + OFFSET_INNER_MID);
int renderFlag = ((g_settings.theme.infobar_gradient_top) ? Font::FULLBG : 0) | Font::IS_UTF8;
int ChannelLogoMode = 0;
if (g_settings.infobar_show_channellogo > 1)
@@ -813,6 +816,8 @@ void CInfoViewer::showTitle(CZapitChannel * channel, const bool calledFromNumZap
infoViewerBB->paintshowButtonBar(noTimer);
}
//weather->show(BoxStartX, g_settings.screen_StartY + OFFSET_INNER_MID);
int ChanNumWidth = 0;
int ChannelLogoMode = 0;
bool logo_ok = false;
@@ -2164,6 +2169,9 @@ void CInfoViewer::killTitle()
is_visible = false;
infoViewerBB->is_visible = false;
if (weather)
weather->hide();
//NI InfoIcons
if (!g_settings.mode_icons && g_settings.mode_icons_skin == INFOICONS_INFOVIEWER)
CInfoIcons::getInstance()->hideIcons();