mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-28 16:01:20 +02:00
- glcd: fix event start/end/duration
Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
@@ -398,7 +398,6 @@ void cGLCD::Exec()
|
|||||||
|
|
||||||
if (percent_duration && t.glcd_show_duration)
|
if (percent_duration && t.glcd_show_duration)
|
||||||
{
|
{
|
||||||
|
|
||||||
Lock();
|
Lock();
|
||||||
Duration = stagingDuration;
|
Duration = stagingDuration;
|
||||||
DurationWidth = font_duration.Width(Duration);
|
DurationWidth = font_duration.Width(Duration);
|
||||||
@@ -411,7 +410,6 @@ void cGLCD::Exec()
|
|||||||
|
|
||||||
if (percent_start && t.glcd_show_start)
|
if (percent_start && t.glcd_show_start)
|
||||||
{
|
{
|
||||||
|
|
||||||
Lock();
|
Lock();
|
||||||
Start = stagingStart;
|
Start = stagingStart;
|
||||||
StartWidth = font_start.Width(Start);
|
StartWidth = font_start.Width(Start);
|
||||||
@@ -1065,7 +1063,7 @@ void cGLCD::Run(void)
|
|||||||
todo = info_CurrentNext.current_zeit.dauer / 60;
|
todo = info_CurrentNext.current_zeit.dauer / 60;
|
||||||
}
|
}
|
||||||
snprintf(tmp_duration, sizeof(tmp_duration), "%d/%d", done, total);
|
snprintf(tmp_duration, sizeof(tmp_duration), "%d/%d", done, total);
|
||||||
Duration = tmp_duration;
|
Duration = stagingDuration = tmp_duration;
|
||||||
}
|
}
|
||||||
if (Scale > 100)
|
if (Scale > 100)
|
||||||
Scale = 100;
|
Scale = 100;
|
||||||
@@ -1074,7 +1072,7 @@ void cGLCD::Run(void)
|
|||||||
char tmp_start[6] = {0};
|
char tmp_start[6] = {0};
|
||||||
tm = localtime(&info_CurrentNext.current_zeit.startzeit);
|
tm = localtime(&info_CurrentNext.current_zeit.startzeit);
|
||||||
snprintf(tmp_start, sizeof(tmp_start), "%02d:%02d", tm->tm_hour, tm->tm_min);
|
snprintf(tmp_start, sizeof(tmp_start), "%02d:%02d", tm->tm_hour, tm->tm_min);
|
||||||
Start = tmp_start;
|
Start = stagingStart = tmp_start;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (CSectionsdClient::epgflags::has_next)
|
if (CSectionsdClient::epgflags::has_next)
|
||||||
@@ -1082,7 +1080,7 @@ void cGLCD::Run(void)
|
|||||||
char tmp_end[6] = {0};
|
char tmp_end[6] = {0};
|
||||||
tm = localtime(&info_CurrentNext.next_zeit.startzeit);
|
tm = localtime(&info_CurrentNext.next_zeit.startzeit);
|
||||||
snprintf(tmp_end, sizeof(tmp_end), "%02d:%02d", tm->tm_hour, tm->tm_min);
|
snprintf(tmp_end, sizeof(tmp_end), "%02d:%02d", tm->tm_hour, tm->tm_min);
|
||||||
End = tmp_end;
|
End = stagingEnd = tmp_end;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user