mirror of
https://projects.vdr-developer.org/git/vdr-plugin-skindesigner.git
synced 2023-10-19 17:58:31 +02:00
fixed bug that date was drawn every flush in displayreplay
This commit is contained in:
parent
f1d5367a53
commit
b04cea1f9d
1
HISTORY
1
HISTORY
@ -270,3 +270,4 @@ Version 0.4.0
|
|||||||
|
|
||||||
- fixed bug that time was not correctly drawn if a submenu implements
|
- fixed bug that time was not correctly drawn if a submenu implements
|
||||||
its own time display
|
its own time display
|
||||||
|
- fixed bug that date was drawn every flush in displayreplay
|
||||||
|
@ -55,7 +55,6 @@ void cDisplayReplayView::DrawDate(void) {
|
|||||||
if (!SetDate(stringTokens, intTokens)) {
|
if (!SetDate(stringTokens, intTokens)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
ClearViewElement(veDateTime);
|
ClearViewElement(veDateTime);
|
||||||
DrawViewElement(veDateTime, &stringTokens, &intTokens);
|
DrawViewElement(veDateTime, &stringTokens, &intTokens);
|
||||||
}
|
}
|
||||||
@ -262,6 +261,7 @@ void cDisplayReplayView::DrawMarks(const cMarks *marks, int current, int total)
|
|||||||
return;
|
return;
|
||||||
if (!MarksChanged(marks, current))
|
if (!MarksChanged(marks, current))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
map < string, string > stringTokens;
|
map < string, string > stringTokens;
|
||||||
map < string, int > intTokens;
|
map < string, int > intTokens;
|
||||||
map < string, vector< map< string, string > > > loopTokens;
|
map < string, vector< map< string, string > > > loopTokens;
|
||||||
|
@ -491,6 +491,7 @@ bool cViewHelpers::SetDate(map < string, string > &stringTokens, map < string, i
|
|||||||
int min = now->tm_min;
|
int min = now->tm_min;
|
||||||
if (min == lastMinute)
|
if (min == lastMinute)
|
||||||
return false;
|
return false;
|
||||||
|
lastMinute = min;
|
||||||
|
|
||||||
intTokens.insert(pair<string, int>("year", now->tm_year + 1900));
|
intTokens.insert(pair<string, int>("year", now->tm_year + 1900));
|
||||||
intTokens.insert(pair<string, int>("day", now->tm_mday));
|
intTokens.insert(pair<string, int>("day", now->tm_mday));
|
||||||
|
Loading…
Reference in New Issue
Block a user