From b6698ed70912b4b94bf4a9449e53e400037dc4cf Mon Sep 17 00:00:00 2001 From: kamel5 Date: Sat, 5 Jun 2021 14:58:19 +0200 Subject: Adding different SetAlpha This can simplify the calls to SetAlpha. --- displaychannelview.c | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'displaychannelview.c') diff --git a/displaychannelview.c b/displaychannelview.c index 2663aff..baf1c68 100644 --- a/displaychannelview.c +++ b/displaychannelview.c @@ -145,17 +145,7 @@ void cNopacityDisplayChannelView::CreatePixmaps(void) { ); if (config.GetValue("channelFadeTime")) { - pixmapBackground->SetAlpha(0); - pixmapTop->SetAlpha(0); - pixmapLogo->SetAlpha(0); - pixmapLogoBackground->SetAlpha(0); - pixmapChannelName->SetAlpha(0); - pixmapDate->SetAlpha(0); - pixmapProgressBar->SetAlpha(0); - pixmapEPGInfo->SetAlpha(0); - pixmapStatusIcons->SetAlpha(0); - pixmapStatusIconsBackground->SetAlpha(0); - pixmapSourceInfo->SetAlpha(0); + SetAlpha(0); } else { int alphaBack = (100 - config.GetValue("channelBackgroundTransparency"))*255/100; pixmapBackground->SetAlpha(alphaBack); -- cgit v1.2.3