gui/infoviewer.cpp: init and reset radiotext position and size

This commit is contained in:
[CST] Focus
2012-10-25 18:02:57 +04:00
parent 2b0f2ffc56
commit 67579409ba

View File

@@ -129,6 +129,7 @@ void CInfoViewer::Init()
channel_id = CZapit::getInstance()->GetCurrentChannelID();;
lcdUpdateTimer = 0;
rt_x = rt_y = rt_h = rt_w = 0;
}
/*
@@ -997,7 +998,9 @@ void CInfoViewer::showMotorMoving (int duration)
void CInfoViewer::killRadiotext()
{
frameBuffer->paintBackgroundBox(rt_x, rt_y, rt_w, rt_h);
if (g_Radiotext->S_RtOsd)
frameBuffer->paintBackgroundBox(rt_x, rt_y, rt_w, rt_h);
rt_x = rt_y = rt_h = rt_w = 0;
}
void CInfoViewer::showRadiotext()
@@ -1133,7 +1136,6 @@ void CInfoViewer::showRadiotext()
}
int CInfoViewer::handleMsg (const neutrino_msg_t msg, neutrino_msg_data_t data)
{
if ((msg == NeutrinoMessages::EVT_CURRENTNEXT_EPG) || (msg == NeutrinoMessages::EVT_NEXTPROGRAM)) {