summaryrefslogtreecommitdiff
path: root/dvbapi.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2001-07-27 10:59:50 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2001-07-27 10:59:50 +0200
commit81919a6647b6c02e8ea368ae0c88db367341c769 (patch)
tree302e921bc3ca3794512fe1b4db260e5eae13f0dd /dvbapi.c
parent697b3898729f2d10bf6653adc04cdf85152d0bff (diff)
downloadvdr-81919a6647b6c02e8ea368ae0c88db367341c769.tar.gz
vdr-81919a6647b6c02e8ea368ae0c88db367341c769.tar.bz2
Made the position of the channel display configurable
Diffstat (limited to 'dvbapi.c')
-rw-r--r--dvbapi.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/dvbapi.c b/dvbapi.c
index fd37773b..f322afb0 100644
--- a/dvbapi.c
+++ b/dvbapi.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: dvbapi.c 1.87 2001/07/22 12:18:29 kls Exp $
+ * $Id: dvbapi.c 1.88 2001/07/27 10:49:51 kls Exp $
*/
#include "dvbapi.h"
@@ -1875,17 +1875,17 @@ void cDvbApi::Open(int w, int h)
//XXX
osd = new cDvbOsd(fd_osd, x, y);
//XXX TODO this should be transferred to the places where the individual windows are requested (there's too much detailed knowledge here!)
- if (d == 0) { //XXX full menu
- osd->Create(0, 0, w, lineHeight, 2);
- osd->Create(0, lineHeight, w, (MenuLines - 3) * lineHeight, 2, true, clrBackground, clrCyan, clrWhite, clrBlack);
- osd->Create(0, (MenuLines - 2) * lineHeight, w, 2 * lineHeight, 4);
- }
- else if (h / lineHeight == 5) { //XXX channel display
+ if (h / lineHeight == 5) { //XXX channel display
osd->Create(0, 0, w, h, 4);
}
else if (h / lineHeight == 1) { //XXX info display
osd->Create(0, 0, w, h, 4);
}
+ else if (d == 0) { //XXX full menu
+ osd->Create(0, 0, w, lineHeight, 2);
+ osd->Create(0, lineHeight, w, (MenuLines - 3) * lineHeight, 2, true, clrBackground, clrCyan, clrWhite, clrBlack);
+ osd->Create(0, (MenuLines - 2) * lineHeight, w, 2 * lineHeight, 4);
+ }
else { //XXX progress display
/*XXX
osd->Create(0, 0, w, lineHeight, 1);