summaryrefslogtreecommitdiff
path: root/styledpixmap.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 /styledpixmap.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 'styledpixmap.c')
-rw-r--r--styledpixmap.c19
1 files changed, 15 insertions, 4 deletions
diff --git a/styledpixmap.c b/styledpixmap.c
index 2569f53..1669501 100644
--- a/styledpixmap.c
+++ b/styledpixmap.c
@@ -22,11 +22,13 @@ void cStyledPixmap::setPixmap(cPixmap *pixmap) {
}
void cStyledPixmap::drawBackground() {
- if (!tvguideConfig.useBlending) {
- pixmap->Fill(color);
- } else {
+ if (tvguideConfig.useBlending == 1){
drawBlendedBackground();
- }
+ } else if (tvguideConfig.useBlending == 2){
+ drawSparsedBackground();
+ } else {
+ pixmap->Fill(color);
+ }
}
void cStyledPixmap::drawBlendedBackground() {
@@ -52,6 +54,15 @@ void cStyledPixmap::drawBlendedBackground() {
}
}
+void cStyledPixmap::drawSparsedBackground() {
+ int width = pixmap->ViewPort().Width();
+ int height = pixmap->ViewPort().Height();
+ cImageLoader imgLoader;
+ if (imgLoader.DrawBackground(colorBlending, color, width, height))
+ pixmap->DrawImage(cPoint(0,0), imgLoader.GetImage());
+
+}
+
void cStyledPixmap::drawBorder() {
int width = pixmap->ViewPort().Width();
int height = pixmap->ViewPort().Height();