mirror of
				https://projects.vdr-developer.org/git/vdr-plugin-skindesigner.git
				synced 2023-10-19 15:58:31 +00:00 
			
		
		
		
	fixed bug in recordings list menu
This commit is contained in:
		
							
								
								
									
										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
 | 
					- 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
 | 
					- display always newest recording of folders in recordings list, thanks@ Lars Hanisch for providing the patch
 | 
				
			||||||
- added extented recording information
 | 
					- 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
 | 
					#if APIVERSNUM < 20102
 | 
				
			||||||
      //cRecording::Folder() first available since VDR 2.1.2
 | 
					      //cRecording::Folder() first available since VDR 2.1.2
 | 
				
			||||||
      const char *recName = rec->Name();
 | 
					      const char *recName = rec->Name();
 | 
				
			||||||
      if (const char *s = strrchr(recName, FOLDERDELIMCHAR))
 | 
					      if (const char *s = strrchr(recName, FOLDERDELIMCHAR)) {
 | 
				
			||||||
        folder = cString(recName, s);
 | 
					         folder = recName;
 | 
				
			||||||
 | 
					         folder.Truncate(s - recName);
 | 
				
			||||||
 | 
					         }
 | 
				
			||||||
      else
 | 
					      else
 | 
				
			||||||
        folder = "";
 | 
					         folder = "";
 | 
				
			||||||
#else
 | 
					#else
 | 
				
			||||||
      folder = rec->Folder();
 | 
					      folder = rec->Folder();
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -41,7 +41,7 @@ void cTemplateView::SetParameters(vector<pair<string, string> > ¶ms) {
 | 
				
			|||||||
    parameters->SetParameters(params);
 | 
					    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;
 | 
					    containerX = x;
 | 
				
			||||||
    containerY = y;
 | 
					    containerY = y;
 | 
				
			||||||
    containerWidth = width; 
 | 
					    containerWidth = width; 
 | 
				
			||||||
@@ -341,7 +341,7 @@ void cTemplateView::PreCache(bool isSubview) {
 | 
				
			|||||||
    }
 | 
					    }
 | 
				
			||||||
    //Calculate OSD Size
 | 
					    //Calculate OSD Size
 | 
				
			||||||
    parameters->CalculateParameters();
 | 
					    parameters->CalculateParameters();
 | 
				
			||||||
    
 | 
					
 | 
				
			||||||
    int osdX = parameters->GetNumericParameter(ptX);
 | 
					    int osdX = parameters->GetNumericParameter(ptX);
 | 
				
			||||||
    int osdY = parameters->GetNumericParameter(ptY);
 | 
					    int osdY = parameters->GetNumericParameter(ptY);
 | 
				
			||||||
    int osdWidth = parameters->GetNumericParameter(ptWidth);
 | 
					    int osdWidth = parameters->GetNumericParameter(ptWidth);
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user