summaryrefslogtreecommitdiff
path: root/baserender.c
diff options
context:
space:
mode:
authorMartin Schirrmacher <vdr.skinflatplus@schirrmacher.eu>2014-02-10 20:01:53 +0100
committerMartin Schirrmacher <vdr.skinflatplus@schirrmacher.eu>2014-02-10 20:01:53 +0100
commit5a924e1d59cb070e7898e6530c61ffb3c3daf815 (patch)
tree1d79f6c84e851c164cf357e99d994979c00e52b2 /baserender.c
parent633e179ef1f9ce04b6d1d973063908f3b22ebeb3 (diff)
downloadskin-flatplus-5a924e1d59cb070e7898e6530c61ffb3c3daf815.tar.gz
skin-flatplus-5a924e1d59cb070e7898e6530c61ffb3c3daf815.tar.bz2
small fixes
Diffstat (limited to 'baserender.c')
-rw-r--r--baserender.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/baserender.c b/baserender.c
index f59bd8b9..2d9cbcfd 100644
--- a/baserender.c
+++ b/baserender.c
@@ -17,6 +17,8 @@ cFlatBaseRender::cFlatBaseRender(void) {
topBarLastDate = "";
topBarUpdateTitle = false;
topBarHeight = 0;
+ topBarExtraIconSet = false;
+ topBarMenuIconSet = false;
marginItem = 5;
@@ -129,6 +131,8 @@ void cFlatBaseRender::TopBarSetExtraIcon(cString icon) {
}
void cFlatBaseRender::TopBarSetMenuIcon(cString icon) {
+ if( !strcmp(*icon, "") )
+ return;
topBarMenuIcon = icon;
topBarMenuIconSet = true;
topBarUpdateTitle = true;
@@ -590,22 +594,22 @@ void cFlatBaseRender::ProgressBarCreate(int Left, int Top, int Width, int Height
void cFlatBaseRender::ProgressBarDraw(int Current, int Total) {
ProgressBarDrawRaw(progressBarPixmap, progressBarPixmapBg, cRect(0, 0, progressBarWidth, progressBarHeight),
cRect(0, 0, progressBarWidth+progressBarMarginVer*2, progressBarHeight+progressBarMarginHor*2),
- Current, Total, progressBarColorFg, progressBarColorBarFg, progressBarColorBg, ProgressType);
+ Current, Total, progressBarColorFg, progressBarColorBarFg, progressBarColorBg, ProgressType, progressBarSetBackground);
}
void cFlatBaseRender::ProgressBarDrawBgColor(void) {
progressBarPixmapBg->Fill(progressBarColorBg);
}
-void cFlatBaseRender::ProgressBarDrawRaw(cPixmap *Pixmap, cPixmap *PixmapBg, cRect rect, cRect rectBg, int Current, int Total, tColor ColorFg, tColor ColorBarFg, tColor ColorBg, int Type) {
+void cFlatBaseRender::ProgressBarDrawRaw(cPixmap *Pixmap, cPixmap *PixmapBg, cRect rect, cRect rectBg, int Current, int Total, tColor ColorFg, tColor ColorBarFg, tColor ColorBg, int Type, bool SetBackground) {
int Middle = rect.Height()/2;
double percentLeft = ((double)Current) / (double)Total;
- if( PixmapBg && progressBarSetBackground )
+ if( PixmapBg && SetBackground )
PixmapBg->DrawRectangle(cRect( rectBg.Left(), rectBg.Top(), rectBg.Width(), rectBg.Height()), ColorBg);
- if( progressBarSetBackground ) {
+ if( SetBackground ) {
if( PixmapBg == Pixmap )
Pixmap->DrawRectangle(cRect( rect.Left(), rect.Top(), rect.Width(), rect.Height()), ColorBg);
else