summaryrefslogtreecommitdiff
path: root/timeline.c
diff options
context:
space:
mode:
authorlouis <louis.braun@gmx.de>2013-01-17 16:19:37 +0100
committerlouis <louis.braun@gmx.de>2013-01-17 16:19:37 +0100
commite895a02d9703c2207d2424d6aaef373042fd0d54 (patch)
treee702cbc596b4aca86438298b12f2177cc59cdd03 /timeline.c
parentc9bc7e07358b9ed9e7c16e48dcb0a6ea4f5d768e (diff)
downloadvdr-plugin-tvguide-e895a02d9703c2207d2424d6aaef373042fd0d54.tar.gz
vdr-plugin-tvguide-e895a02d9703c2207d2424d6aaef373042fd0d54.tar.bz2
Added config option style nOpacity for backgrounds and theme nOpacity
Diffstat (limited to 'timeline.c')
-rw-r--r--timeline.c17
1 files changed, 13 insertions, 4 deletions
diff --git a/timeline.c b/timeline.c
index e2275fd..be3199a 100644
--- a/timeline.c
+++ b/timeline.c
@@ -80,9 +80,10 @@ void cTimeLine::drawTimeline() {
}
cImage *cTimeLine::createBackgroundImage(int width, int height, tColor clrBgr, tColor clrBlend) {
- cImage *image = new cImage(cSize(width, height));
- image->Fill(clrBgr);
- if (tvguideConfig.useBlending) {
+ cImage *image = NULL;
+ if (tvguideConfig.useBlending == 1) {
+ image = new cImage(cSize(width, height));
+ image->Fill(clrBgr);
int stepY = 0.5*height / 64;
int alpha = 0x00;
tColor clr;
@@ -95,7 +96,15 @@ cImage *cTimeLine::createBackgroundImage(int width, int height, tColor clrBgr, t
}
alpha += 0x04;
}
- }
+ } else if (tvguideConfig.useBlending == 2) {
+ cImageLoader imgLoader;
+ if (imgLoader.DrawBackground(clrBgr, clrBlend, width, height)) {
+ image = new cImage(imgLoader.GetImage());
+ }
+ } else {
+ image = new cImage(cSize(width, height));
+ image->Fill(clrBgr);
+ }
return image;
}