diff options
author | Martin Schirrmacher <vdr.skinflatplus@schirrmacher.eu> | 2014-05-30 17:54:04 +0200 |
---|---|---|
committer | Martin Schirrmacher <vdr.skinflatplus@schirrmacher.eu> | 2014-05-30 17:54:04 +0200 |
commit | 2e5ecb5d9894cfd42f9117014fded3250eeb3688 (patch) | |
tree | 0205aaa40edbf085537b883b2846f228faa8a7bd /displaymenu.c | |
parent | 5efd7a8fa8a21438211c9a03dedc10d25d2d8bd9 (diff) | |
download | skin-flatplus-2e5ecb5d9894cfd42f9117014fded3250eeb3688.tar.gz skin-flatplus-2e5ecb5d9894cfd42f9117014fded3250eeb3688.tar.bz2 |
patch - load epg image cover_vdr.jpg in recordings folder (thanks to Saman@vdr-portal.de)
Diffstat (limited to 'displaymenu.c')
-rw-r--r-- | displaymenu.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/displaymenu.c b/displaymenu.c index 9d66c364..b199b37a 100644 --- a/displaymenu.c +++ b/displaymenu.c @@ -2476,6 +2476,15 @@ void cFlatDisplayMenu::DrawItemExtraRecording(const cRecording *Recording, cStri } } + cString recPath = cString::sprintf("%s", Recording->FileName()); + cString recImage; + if( imgLoader.SearchRecordingPoster(recPath, recImage) ) { + mediaWidth = cWidth/2 - marginItem*3; + mediaHeight = 999; + mediaType = 2; + mediaPath = recImage; + } + if( mediaPath.length() > 0 ) { cImage *img = imgLoader.LoadFile(mediaPath.c_str(), mediaWidth, mediaHeight); if( img && mediaType == 2 ) { @@ -2863,6 +2872,13 @@ void cFlatDisplayMenu::SetRecording(const cRecording *Recording) { dsyslog("SetRecording tvscraper time: %d ms", tick3 - tick2); #endif + cString recPath = cString::sprintf("%s", Recording->FileName()); + cString recImage; + if( imgLoader.SearchRecordingPoster(recPath, recImage) ) { + mediaWidth = cWidth/2 - marginItem*2; + mediaHeight = cHeight - marginItem*2 - fontHeight - 6; + mediaPath = recImage; + } if( mediaPath.length() > 0 ) { cImage *img = imgLoader.LoadFile(mediaPath.c_str(), mediaWidth, mediaHeight); if( img ) { |