diff options
author | louis <louis.braun@gmx.de> | 2013-11-07 16:58:07 +0100 |
---|---|---|
committer | louis <louis.braun@gmx.de> | 2013-11-07 16:58:07 +0100 |
commit | e09cf14b0cf0882b8b4db75ae64cf9d6846b8bc7 (patch) | |
tree | 7886779ba33b466b2fe9ca67362183dabe08597e /displayvolume.c | |
parent | 0bbbad6d8057953ae51e9465bd76e5a3256e5eee (diff) | |
download | skin-nopacity-e09cf14b0cf0882b8b4db75ae64cf9d6846b8bc7.tar.gz skin-nopacity-e09cf14b0cf0882b8b4db75ae64cf9d6846b8bc7.tar.bz2 |
changed build environment that every class is build seperately
Diffstat (limited to 'displayvolume.c')
-rw-r--r-- | displayvolume.c | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/displayvolume.c b/displayvolume.c index 979f182..d6ba5d1 100644 --- a/displayvolume.c +++ b/displayvolume.c @@ -1,6 +1,9 @@ #include "symbols/mute.xpm" #include "displayvolume.h" +#include "config.h" +#include "helpers.h" + cNopacityDisplayVolume::cNopacityDisplayVolume(cImageCache *imgCache) { this->imgCache = imgCache; initial = true; @@ -13,7 +16,7 @@ cNopacityDisplayVolume::cNopacityDisplayVolume(cImageCache *imgCache) { osd = CreateOsd(left, top, geoManager->volumeWidth, geoManager->volumeHeight); pixmapBackground = osd->CreatePixmap(1, cRect(0, 0, geoManager->volumeWidth, geoManager->volumeHeight)); - + if (config.GetValue("displayType") == dtGraphical) { cImage *imgBack = imgCache->GetSkinElement(seVolumeBackground); if (imgBack) { @@ -25,14 +28,14 @@ cNopacityDisplayVolume::cNopacityDisplayVolume(cImageCache *imgCache) { DrawBlendedBackground(pixmapBackground, 0, geoManager->volumeWidth, - Theme.Color(clrChannelBackground), - Theme.Color(clrChannelBackBlend), + Theme.Color(clrChannelBackground), + Theme.Color(clrChannelBackBlend), true); - DrawBlendedBackground(pixmapBackground, + DrawBlendedBackground(pixmapBackground, 0, geoManager->volumeWidth, - Theme.Color(clrChannelBackground), - Theme.Color(clrChannelBackBlend), + Theme.Color(clrChannelBackground), + Theme.Color(clrChannelBackBlend), false); } int cornerRadius = geoManager->volumeHeight/4; |