diff options
Diffstat (limited to 'styledpixmap.c')
-rw-r--r-- | styledpixmap.c | 19 |
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();
|