diff options
author | louis <louis.braun@gmx.de> | 2013-02-20 17:36:03 +0100 |
---|---|---|
committer | louis <louis.braun@gmx.de> | 2013-02-20 17:36:03 +0100 |
commit | 529719875720aa80197b95fb49bd9c712a4023f1 (patch) | |
tree | 454b08fa4914c24cbcf626842a96463052c501fc /imageloader.c | |
parent | d60c6a242c76708b9e943ba141dbf80bb117b536 (diff) | |
download | skin-nopacity-529719875720aa80197b95fb49bd9c712a4023f1.tar.gz skin-nopacity-529719875720aa80197b95fb49bd9c712a4023f1.tar.bz2 |
display all jpegs in a recording folder in detailed recording view
Diffstat (limited to 'imageloader.c')
-rw-r--r-- | imageloader.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/imageloader.c b/imageloader.c index 6a68b5b..188100b 100644 --- a/imageloader.c +++ b/imageloader.c @@ -147,6 +147,18 @@ bool cImageLoader::LoadRecordingImage(cString Path) { return false; } +bool cImageLoader::LoadAdditionalRecordingImage(cString path, cString name) { + int width = config.epgImageWidthLarge; + int height = config.epgImageHeightLarge; + if ((width == 0)||(height==0)) + return false; + if (LoadImage(name, path, "jpg")) { + buffer.sample( Geometry(width, height)); + return true; + } + return false; +} + void cImageLoader::DrawBackground(tColor back, tColor blend, int width, int height) { Color Back = Argb2Color(back); Color Blend = Argb2Color(blend); |