summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Schirrmacher <vdr.skinflat@schirrmacher.eu>2013-08-20 20:10:33 (GMT)
committerMartin Schirrmacher <vdr.skinflat@schirrmacher.eu>2013-08-20 20:10:33 (GMT)
commit46221348c313772ffd671027e2239a5a302af881 (patch)
tree726a40da80d4f122db5bb528a3b0cb9120acf1e5
parent57fe4a2bf12adc4ea461569551ecac935dbf3aae (diff)
downloadskin-flat-46221348c313772ffd671027e2239a5a302af881.tar.gz
skin-flat-46221348c313772ffd671027e2239a5a302af881.tar.bz2
display message at bottom
-rw-r--r--baserender.c5
-rw-r--r--displaymenu.c10
2 files changed, 2 insertions, 13 deletions
diff --git a/baserender.c b/baserender.c
index 6bca3ba..abbf0a8 100644
--- a/baserender.c
+++ b/baserender.c
@@ -166,7 +166,7 @@ void cFlatBaseRender::ButtonsSet(const char *Red, const char *Green, const char
void cFlatBaseRender::MessageCreate(void) {
messageHeight = fontHeight + marginItem*2;
- int top = (osdHeight - messageHeight) / 2;
+ int top = osdHeight - osdHeight/5 - messageHeight;
messagePixmap = osd->CreatePixmap(2, cRect(0, top, osdWidth, messageHeight));
messagePixmap->Fill(clrTransparent);
}
@@ -367,8 +367,7 @@ int cFlatBaseRender::ProgressBarHeight(void) {
void cFlatBaseRender::ProgressBarDrawMarks(int Current, int Total, const cMarks *Marks, tColor Color, tColor ColorCurrent) {
progressBarColorMark = Color;
progressBarColorMarkCurrent = ColorCurrent;
- int posMark = 0, posMarkLast = 0;
- int posCurrent;
+ int posMark = 0, posMarkLast = 0, posCurrent = 0;
int top = progressBarHeight / 2;
progressBarPixmap->Fill( progressBarColorBg );
diff --git a/displaymenu.c b/displaymenu.c
index 570095d..c4047bf 100644
--- a/displaymenu.c
+++ b/displaymenu.c
@@ -244,16 +244,6 @@ bool cFlatDisplayMenu::SetItemChannel(const cChannel *Channel, int Index, bool C
menuPixmap->DrawText(cPoint(marginItem, y), buffer, ColorFg, ColorBg, font);
}
- for (int i = 0; i < MaxTabs; i++)
- {
- const char *s = GetTabbedText(buffer, i);
- if (s) {
- int xt = Tab(i);
- }
- if (!Tab(i + 1))
- break;
- }
-
return true;
}