mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-30 08:51:04 +02:00
infoviewer: fix FIXME comment from previous commit
Origin commit data
------------------
Branch: ni/coolstream
Commit: 62c474eaba
Author: vanhofen <vanhofen@gmx.de>
Date: 2018-01-08 (Mon, 08 Jan 2018)
Origin message was:
------------------
- infoviewer: fix FIXME comment from previous commit
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -854,17 +854,19 @@ void CInfoViewer::showTitle(CZapitChannel * channel, const bool calledFromNumZap
|
|||||||
if ((!logo_ok && g_settings.infobar_show_channellogo < 2) || g_settings.infobar_show_channellogo == 2 || g_settings.infobar_show_channellogo == 4) // no logo in numberbox
|
if ((!logo_ok && g_settings.infobar_show_channellogo < 2) || g_settings.infobar_show_channellogo == 2 || g_settings.infobar_show_channellogo == 4) // no logo in numberbox
|
||||||
{
|
{
|
||||||
// show number in numberbox
|
// show number in numberbox
|
||||||
int h_tmp = numbox->getHeight();
|
int h_tmp = numbox->getHeight();
|
||||||
int y_tmp = numbox->getYPos() + 5*100/h_tmp; //5%
|
int y_tmp = numbox->getYPos() + OFFSET_INNER_MIN;
|
||||||
if (g_settings.infobar_sat_display){
|
int w_tmp = g_Font[SNeutrinoSettings::FONT_TYPE_INFOBAR_NUMBER]->getRenderWidth(strChanNum);
|
||||||
|
if (g_settings.infobar_sat_display)
|
||||||
|
{
|
||||||
int h_sfont = g_SignalFont->getHeight();
|
int h_sfont = g_SignalFont->getHeight();
|
||||||
h_tmp -= h_sfont;
|
h_tmp -= h_sfont;
|
||||||
y_tmp += h_sfont;
|
y_tmp += h_sfont;
|
||||||
}
|
}
|
||||||
y_tmp += h_tmp/2 + g_Font[SNeutrinoSettings::FONT_TYPE_INFOBAR_NUMBER]->getHeight()/2;
|
y_tmp += h_tmp/2 + g_Font[SNeutrinoSettings::FONT_TYPE_INFOBAR_NUMBER]->getHeight()/2;
|
||||||
g_Font[SNeutrinoSettings::FONT_TYPE_INFOBAR_NUMBER]->RenderString(BoxStartX + numbox_offset + (numbox_maxtxtwidth - g_Font[SNeutrinoSettings::FONT_TYPE_INFOBAR_NUMBER]->getRenderWidth(strChanNum))/2,
|
g_Font[SNeutrinoSettings::FONT_TYPE_INFOBAR_NUMBER]->RenderString(BoxStartX + numbox_offset + (numbox_maxtxtwidth - w_tmp)/2,
|
||||||
y_tmp,
|
y_tmp,
|
||||||
numbox_maxtxtwidth, //FIXME: this value is definitely wrong here! We need to get render width from strChanNum.
|
w_tmp,
|
||||||
strChanNum,
|
strChanNum,
|
||||||
col_NumBoxText, 0, renderFlag);
|
col_NumBoxText, 0, renderFlag);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user