mirror of
https://projects.vdr-developer.org/git/vdr-plugin-skindesigner.git
synced 2023-10-19 17:58:31 +02:00
fixed bug in recordings list menu
This commit is contained in:
parent
1809656e58
commit
69af1d531e
2
HISTORY
2
HISTORY
@ -28,5 +28,5 @@ Version 0.0.2
|
||||
- fixed bug that new font was displayed first after VDR restart when font was changed in OSD Setup menu
|
||||
- display always newest recording of folders in recordings list, thanks@ Lars Hanisch for providing the patch
|
||||
- added extented recording information
|
||||
- added token {nummenuitem} as number of item in for every list, value starts with 1
|
||||
- added token {nummenuitem} as number of item for every list, value starts with 1
|
||||
|
||||
|
@ -71,10 +71,12 @@ void cRecordingsFolderInfo::Rebuild(void)
|
||||
#if APIVERSNUM < 20102
|
||||
//cRecording::Folder() first available since VDR 2.1.2
|
||||
const char *recName = rec->Name();
|
||||
if (const char *s = strrchr(recName, FOLDERDELIMCHAR))
|
||||
folder = cString(recName, s);
|
||||
if (const char *s = strrchr(recName, FOLDERDELIMCHAR)) {
|
||||
folder = recName;
|
||||
folder.Truncate(s - recName);
|
||||
}
|
||||
else
|
||||
folder = "";
|
||||
folder = "";
|
||||
#else
|
||||
folder = rec->Folder();
|
||||
#endif
|
||||
|
@ -41,7 +41,7 @@ void cTemplateView::SetParameters(vector<pair<string, string> > ¶ms) {
|
||||
parameters->SetParameters(params);
|
||||
}
|
||||
|
||||
void cTemplateView::SetContainer(int x, int y, int width, int height) {
|
||||
void cTemplateView::SetContainer(int x, int y, int width, int height) {
|
||||
containerX = x;
|
||||
containerY = y;
|
||||
containerWidth = width;
|
||||
@ -341,7 +341,7 @@ void cTemplateView::PreCache(bool isSubview) {
|
||||
}
|
||||
//Calculate OSD Size
|
||||
parameters->CalculateParameters();
|
||||
|
||||
|
||||
int osdX = parameters->GetNumericParameter(ptX);
|
||||
int osdY = parameters->GetNumericParameter(ptY);
|
||||
int osdWidth = parameters->GetNumericParameter(ptWidth);
|
||||
|
Loading…
Reference in New Issue
Block a user