mirror of
https://projects.vdr-developer.org/git/vdr-plugin-tvguide.git
synced 2023-10-05 15:01:48 +02:00
Correct Warnung: Variable »ti« gesetzt
This commit is contained in:
parent
e399518900
commit
7d44c8f91f
8
view.c
8
view.c
@ -121,13 +121,9 @@ void cView::DrawHeader(void) {
|
|||||||
pixmapHeader->DrawText(cPoint(xText, ySubtitle), CutText(subTitle, textWidthMax, fontHeader).c_str(), theme.Color(clrFont), theme.Color(clrStatusHeader), fontHeader);
|
pixmapHeader->DrawText(cPoint(xText, ySubtitle), CutText(subTitle, textWidthMax, fontHeader).c_str(), theme.Color(clrFont), theme.Color(clrStatusHeader), fontHeader);
|
||||||
//REC Icon
|
//REC Icon
|
||||||
eTimerMatch timerMatch=tmNone;
|
eTimerMatch timerMatch=tmNone;
|
||||||
#if VDRVERSNUM >= 20301
|
|
||||||
const cTimer *ti;
|
|
||||||
#else
|
|
||||||
cTimer *ti;
|
|
||||||
#endif
|
|
||||||
if (!event)
|
if (!event)
|
||||||
return;
|
return;
|
||||||
|
const cTimer *ti;
|
||||||
if (tvguideConfig.useRemoteTimers && pRemoteTimers) {
|
if (tvguideConfig.useRemoteTimers && pRemoteTimers) {
|
||||||
RemoteTimers_GetMatch_v1_0 rtMatch;
|
RemoteTimers_GetMatch_v1_0 rtMatch;
|
||||||
rtMatch.event = event;
|
rtMatch.event = event;
|
||||||
@ -142,7 +138,7 @@ void cView::DrawHeader(void) {
|
|||||||
ti = Timers.GetMatch(event, &timerMatch);
|
ti = Timers.GetMatch(event, &timerMatch);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
if (timerMatch == tmFull) {
|
if (ti && timerMatch == tmFull) {
|
||||||
cString recIconText(" REC ");
|
cString recIconText(" REC ");
|
||||||
int widthIcon = fontManager.FontDetailHeader->Width(*recIconText);
|
int widthIcon = fontManager.FontDetailHeader->Width(*recIconText);
|
||||||
int height = fontManager.FontDetailHeader->Height()+10;
|
int height = fontManager.FontDetailHeader->Height()+10;
|
||||||
|
Loading…
Reference in New Issue
Block a user