mirror of
				https://projects.vdr-developer.org/git/vdr-plugin-tvguide.git
				synced 2023-10-05 13:01:48 +00:00 
			
		
		
		
	search for <event_id>_0.jpg beside <event_id>.jpg as epg image
This commit is contained in:
		
							
								
								
									
										1
									
								
								HISTORY
									
									
									
									
									
								
							
							
						
						
									
										1
									
								
								HISTORY
									
									
									
									
									
								
							@@ -79,3 +79,4 @@ Version 1.1.0
 | 
			
		||||
  -i icons directory
 | 
			
		||||
  -l logo directory
 | 
			
		||||
- changed detailed epg view using full screen, some further optimisations
 | 
			
		||||
- search for <event_id>_0.jpg beside <event_id>.jpg as epg image
 | 
			
		||||
 
 | 
			
		||||
@@ -41,7 +41,11 @@ bool cImageLoader::LoadLogo(const cChannel *channel, int width, int height) {
 | 
			
		||||
bool cImageLoader::LoadEPGImage(int eventID, int width, int height) {
 | 
			
		||||
    if ((width == 0)||(height==0))
 | 
			
		||||
        return false;
 | 
			
		||||
    if (!LoadImage(*cString::sprintf("%d", eventID), *tvguideConfig.epgImagePath, "jpg"))
 | 
			
		||||
    bool success = false;
 | 
			
		||||
    success = LoadImage(*cString::sprintf("%d", eventID), *tvguideConfig.epgImagePath, "jpg");
 | 
			
		||||
    if (!success)
 | 
			
		||||
        success = LoadImage(*cString::sprintf("%d_0", eventID), *tvguideConfig.epgImagePath, "jpg");
 | 
			
		||||
    if (!success)
 | 
			
		||||
        return false;
 | 
			
		||||
    buffer.sample( Geometry(width, height));
 | 
			
		||||
    return true;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user