diff options
author | Martin Schirrmacher <vdr.skinflatplus@schirrmacher.eu> | 2013-11-13 17:56:27 +0100 |
---|---|---|
committer | Martin Schirrmacher <vdr.skinflatplus@schirrmacher.eu> | 2013-11-13 17:56:27 +0100 |
commit | cb9df5720b518a94a9f7e0ae9d2537235b34005f (patch) | |
tree | 66b36e9033f5ef9328b7592a54cf47aa2cc1a522 | |
parent | eb5458234d8e343f781fa4ed69749814af18384c (diff) | |
download | skin-flatplus-cb9df5720b518a94a9f7e0ae9d2537235b34005f.tar.gz skin-flatplus-cb9df5720b518a94a9f7e0ae9d2537235b34005f.tar.bz2 |
top bar title align right
-rw-r--r-- | baserender.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/baserender.c b/baserender.c index fc9abc22..5a3d60d9 100644 --- a/baserender.c +++ b/baserender.c @@ -135,8 +135,8 @@ void cFlatBaseRender::TopBarUpdate(void) { int extraMaxWidth = max(extra1Width, extra2Width); int extraLeft = TopBarWidth/2 - extraMaxWidth/2; - topBarPixmap->DrawText(cPoint(extraLeft, fontSmlTop), tobBarTitleExtra1, Theme.Color(clrTopBarDateFont), Theme.Color(clrTopBarBg), fontSml, extraMaxWidth); - topBarPixmap->DrawText(cPoint(extraLeft, fontSmlTop + fontSmlHeight), tobBarTitleExtra2, Theme.Color(clrTopBarDateFont), Theme.Color(clrTopBarBg), fontSml, extraMaxWidth); + topBarPixmap->DrawText(cPoint(extraLeft, fontSmlTop), tobBarTitleExtra1, Theme.Color(clrTopBarDateFont), Theme.Color(clrTopBarBg), fontSml, extraMaxWidth, 0, taRight); + topBarPixmap->DrawText(cPoint(extraLeft, fontSmlTop + fontSmlHeight), tobBarTitleExtra2, Theme.Color(clrTopBarDateFont), Theme.Color(clrTopBarBg), fontSml, extraMaxWidth, 0, taRight); topBarExtraIconPixmap->Fill(clrTransparent); if( topBarExtraIconSet ) { @@ -163,8 +163,8 @@ void cFlatBaseRender::TopBarUpdate(void) { int fullWidth = max(weekdayWidth, dateWidth); - topBarPixmap->DrawText(cPoint(TopBarWidth - timeWidth - fullWidth - marginItem*2, fontSmlTop), weekday, Theme.Color(clrTopBarDateFont), Theme.Color(clrTopBarBg), fontSml, fullWidth, 0, taCenter); - topBarPixmap->DrawText(cPoint(TopBarWidth - timeWidth - fullWidth - marginItem*2, fontSmlTop + fontSmlHeight), date, Theme.Color(clrTopBarDateFont), Theme.Color(clrTopBarBg), fontSml, fullWidth, 0, taCenter); + topBarPixmap->DrawText(cPoint(TopBarWidth - timeWidth - fullWidth - marginItem*2, fontSmlTop), weekday, Theme.Color(clrTopBarDateFont), Theme.Color(clrTopBarBg), fontSml, fullWidth, 0, taRight); + topBarPixmap->DrawText(cPoint(TopBarWidth - timeWidth - fullWidth - marginItem*2, fontSmlTop + fontSmlHeight), date, Theme.Color(clrTopBarDateFont), Theme.Color(clrTopBarBg), fontSml, fullWidth, 0, taRight); DecorBorderDraw(Config.decorBorderTopBarSize, Config.decorBorderTopBarSize, osdWidth - Config.decorBorderTopBarSize*2, topBarHeight, Config.decorBorderTopBarSize, Config.decorBorderTopBarType, Config.decorBorderTopBarFg, Config.decorBorderTopBarBg); } |