summaryrefslogtreecommitdiff
path: root/imageloader.c
diff options
context:
space:
mode:
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;