diff options
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; |