diff options
Diffstat (limited to 'view.c')
-rw-r--r-- | view.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -108,7 +108,8 @@ void cView::DrawHeader(void) { if (imgLoader.LoadLogo(channel, logoWidth, logoHeight)) { cImage logo = imgLoader.GetImage(); const int logoheight = logo.Height(); - pixmapHeaderLogo->DrawImage(cPoint(border / 2, ((headerHeight - logoHeight) / 2 + (logoHeight - logoheight) / 2)), logo); + const int logowidth = logo.Width(); + pixmapHeaderLogo->DrawImage(cPoint(xText + ((logoWidth - logowidth) / 2), ((headerHeight - logoheight) / 2)), logo); xText += logoWidth + border / 2; } } |