summaryrefslogtreecommitdiff
path: root/imageloader.c
diff options
context:
space:
mode:
Diffstat (limited to 'imageloader.c')
-rw-r--r--imageloader.c12
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);