summaryrefslogtreecommitdiff
path: root/displayvolume.c
diff options
context:
space:
mode:
Diffstat (limited to 'displayvolume.c')
-rw-r--r--displayvolume.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/displayvolume.c b/displayvolume.c
index 9570e1a..5bbca51 100644
--- a/displayvolume.c
+++ b/displayvolume.c
@@ -18,9 +18,13 @@ cNopacityDisplayVolume::cNopacityDisplayVolume(void) {
pixmapBackgroundTop = osd->CreatePixmap(1, cRect(0, 0, width, height/2));
pixmapBackgroundBottom = osd->CreatePixmap(1, cRect(0, height/2, width, height/2));
-
- DrawBlendedBackground(pixmapBackgroundTop, Theme.Color(clrChannelBackground), Theme.Color(clrChannelBackBlend), true);
- DrawBlendedBackground(pixmapBackgroundBottom, Theme.Color(clrChannelBackground), Theme.Color(clrChannelBackBlend), false);
+ if (config.doBlending) {
+ DrawBlendedBackground(pixmapBackgroundTop, Theme.Color(clrChannelBackground), Theme.Color(clrChannelBackBlend), true);
+ DrawBlendedBackground(pixmapBackgroundBottom, Theme.Color(clrChannelBackground), Theme.Color(clrChannelBackBlend), false);
+ } else {
+ pixmapBackgroundTop->Fill(Theme.Color(clrChannelBackground));
+ pixmapBackgroundBottom->Fill(Theme.Color(clrChannelBackground));
+ }
int cornerSize = height/4;
if (cornerSize > 2) {
pixmapBackgroundTop->DrawEllipse(cRect(0, 0, cornerSize, cornerSize), clrTransparent, -2);