fix for --enable-pip

Origin commit data
------------------
Commit: cb806cb745
Author: BPanther <bpanther_ts@hotmail.com>
Date: 2023-10-04 (Wed, 04 Oct 2023)
This commit is contained in:
BPanther
2024-01-02 00:43:08 +01:00
committed by Thilo Graf
parent 01962c0262
commit eb58604269
6 changed files with 25 additions and 6 deletions

View File

@@ -2044,9 +2044,9 @@ void CChannelList::paintItem(int pos, const bool firstpaint)
else if (rec_mode & CRecordManager::RECMODE_TSHIFT)
record_icon = NEUTRINO_ICON_MARKER_TIMESHIFT;
#if ENABLE_PIP
//set pip icon
const char *pip_icon = NULL;
#if ENABLE_PIP
if ((*chanlist)[curr]->getChannelID() == CZapit::getInstance()->GetPipChannelID())
pip_icon = NEUTRINO_ICON_MARKER_PIP;
#endif
@@ -2124,6 +2124,7 @@ void CChannelList::paintItem(int pos, const bool firstpaint)
}
}
#if ENABLE_PIP
if (pip_icon)
{
frameBuffer->getIconSize(pip_icon, &icon_w, &icon_h);
@@ -2133,6 +2134,7 @@ void CChannelList::paintItem(int pos, const bool firstpaint)
icon_x_right -= icon_w + OFFSET_INNER_MID;
}
}
#endif
if (record_icon)
{