summaryrefslogtreecommitdiff
path: root/imageloader.c
diff options
context:
space:
mode:
authorlouis <louis.braun@gmx.de>2013-06-03 09:52:54 +0200
committerlouis <louis.braun@gmx.de>2013-06-03 09:52:54 +0200
commite87e589416466453d5a8b630b8a514f33f622e86 (patch)
tree10440604ad94f69d812846e3ac88be7e39ec24cb /imageloader.c
parentd2e13f083b60b5251cd5d845f49bac48119800e2 (diff)
downloadvdr-plugin-tvguide-e87e589416466453d5a8b630b8a514f33f622e86.tar.gz
vdr-plugin-tvguide-e87e589416466453d5a8b630b8a514f33f622e86.tar.bz2
display of additional EPG pictures in detailed epg view
Diffstat (limited to 'imageloader.c')
-rw-r--r--imageloader.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/imageloader.c b/imageloader.c
index cde737a..31e0d0c 100644
--- a/imageloader.c
+++ b/imageloader.c
@@ -44,6 +44,21 @@ bool cImageLoader::LoadEPGImage(int eventID) {
return true;
}
+bool cImageLoader::LoadAdditionalEPGImage(cString name) {
+ int width = tvguideConfig.epgImageWidthLarge;
+ int height = tvguideConfig.epgImageHeightLarge;
+ if ((width == 0)||(height==0))
+ return false;
+ bool success = false;
+ success = LoadImage(name, tvguideConfig.epgImagePath, "jpg");
+ if (!success)
+ return false;
+ if (height != 0 || width != 0) {
+ buffer.sample( Geometry(width, height));
+ }
+ return true;
+}
+
bool cImageLoader::DrawBackground(tColor back, tColor blend, int width, int height) {
if ((width < 1) || (height < 1))
return false;