diff options
author | louis <louis.braun@gmx.de> | 2013-11-02 10:29:37 +0100 |
---|---|---|
committer | louis <louis.braun@gmx.de> | 2013-11-02 10:29:37 +0100 |
commit | 573b9a0c6d644086a11d9b4b4c7b6b5d57cc386f (patch) | |
tree | 418a38a816582c9eac7a4515dd0be1a9020b26b8 | |
parent | 13197227a45203a1e67e5062a9dc60b8c23e9c73 (diff) | |
download | skin-nopacity-573b9a0c6d644086a11d9b4b4c7b6b5d57cc386f.tar.gz skin-nopacity-573b9a0c6d644086a11d9b4b4c7b6b5d57cc386f.tar.bz2 |
Added transparent background also for displayreplay
-rw-r--r-- | displayreplay.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/displayreplay.c b/displayreplay.c index e0d8b16..cbd6a92 100644 --- a/displayreplay.c +++ b/displayreplay.c @@ -151,6 +151,9 @@ void cNopacityDisplayReplay::CreatePixmaps(void) { pixmapPause->SetAlpha(0); pixmapPlay->SetAlpha(0); pixmapFwd->SetAlpha(0); + } else if (!modeOnly) { + int alphaBack = (100 - config.GetValue("channelBackgroundTransparency"))*255/100; + pixmapBackground->SetAlpha(alphaBack); } } @@ -449,7 +452,8 @@ void cNopacityDisplayReplay::Action(void) { double t = min(double(Now - Start) / FadeTime, 1.0); int Alpha = t * ALPHA_OPAQUE; if (!modeOnly) { - pixmapBackground->SetAlpha(Alpha); + int alphaBack = (100 - config.GetValue("channelBackgroundTransparency"))*Alpha/100; + pixmapBackground->SetAlpha(alphaBack); pixmapTop->SetAlpha(Alpha); pixmapInfo->SetAlpha(Alpha); pixmapDate->SetAlpha(Alpha); |