summaryrefslogtreecommitdiff
path: root/baserender.c
diff options
context:
space:
mode:
authorMartin Schirrmacher <vdr.skinflatplus@schirrmacher.eu>2013-11-16 18:06:00 +0100
committerMartin Schirrmacher <vdr.skinflatplus@schirrmacher.eu>2013-11-16 18:06:00 +0100
commit7d9feb87c1c0e9fee3e93d2a125e7f35f6ad6aff (patch)
tree7f1a176281005ea72cc6b41f6a609b556ccfb2ea /baserender.c
parentcbe26aac0f84c9a247dcbc1a5554c415606ad41f (diff)
downloadskin-flatplus-7d9feb87c1c0e9fee3e93d2a125e7f35f6ad6aff.tar.gz
skin-flatplus-7d9feb87c1c0e9fee3e93d2a125e7f35f6ad6aff.tar.bz2
fix blue button size
Diffstat (limited to 'baserender.c')
-rw-r--r--baserender.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/baserender.c b/baserender.c
index 64eeeb1c..01a69556 100644
--- a/baserender.c
+++ b/baserender.c
@@ -219,6 +219,8 @@ void cFlatBaseRender::ButtonsSet(const char *Red, const char *Green, const char
}
x += buttonWidth + marginItem + Config.decorBorderButtonSize*2;
+ if( x + buttonWidth + Config.decorBorderButtonSize*2 < buttonsWidth )
+ buttonWidth += buttonsWidth - (x + buttonWidth + Config.decorBorderButtonSize*2);
if( !(!Config.ButtonsShowEmpty && !Blue) ) {
buttonsPixmap->DrawText(cPoint(x, 0), Blue, Theme.Color(clrButtonFont), Theme.Color(clrButtonBg), font, buttonWidth, fontHeight + marginButtonColor, taCenter);
buttonsPixmap->DrawRectangle(cRect(x, fontHeight + marginButtonColor, buttonWidth, buttonColorHeight), Theme.Color(clrButtonBlue));