diff options
author | Martin Schirrmacher <vdr.skinflatplus@schirrmacher.eu> | 2014-03-11 20:33:58 +0100 |
---|---|---|
committer | Martin Schirrmacher <vdr.skinflatplus@schirrmacher.eu> | 2014-03-11 20:33:58 +0100 |
commit | d15b59582da7115def27ab32fa239a5dcabadec1 (patch) | |
tree | 717ff1f980e3d72e3b35b3c2d2f1d5c268bfffc7 /baserender.c | |
parent | be360f1cd8a503cb1fd63573f96f02a52d87d2aa (diff) | |
download | skin-flatplus-d15b59582da7115def27ab32fa239a5dcabadec1.tar.gz skin-flatplus-d15b59582da7115def27ab32fa239a5dcabadec1.tar.bz2 |
update channel background logo position
Diffstat (limited to 'baserender.c')
-rw-r--r-- | baserender.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/baserender.c b/baserender.c index 4c290676..f894892a 100644 --- a/baserender.c +++ b/baserender.c @@ -211,17 +211,22 @@ void cFlatBaseRender::TopBarUpdate(void) { } if( topBarMenuLogoSet && Config.TopBarMenuIconShow ) { + topBarIconPixmap->Fill(clrTransparent); int IconLeft = marginItem; + int imageBGWidth = 999; + int imageBGHeight = topBarHeight - marginItem*2; cImage *imgBG = imgLoader.LoadIcon("logo_background", 999, topBarHeight - marginItem*2); if( imgBG ) { int iconTop = (topBarHeight / 2 - imgBG->Height()/2); + imageBGHeight = imgBG->Height(); + imageBGWidth = imgBG->Width(); topBarIconBGPixmap->DrawImage( cPoint(IconLeft, iconTop), *imgBG ); } - cImage *img = imgLoader.LoadLogo(*topBarMenuLogo, 999, topBarHeight - marginItem*2); + cImage *img = imgLoader.LoadLogo(*topBarMenuLogo, imageBGWidth, imageBGHeight); if( img ) { - int iconTop = (topBarHeight / 2 - img->Height()/2); + int iconTop = (imageBGHeight - img->Height())/2; topBarIconPixmap->DrawImage(cPoint(IconLeft, iconTop), *img); MenuIconWidth = img->Width()+marginItem*2; TitleWidthLeft -= MenuIconWidth + marginItem*3; |