summaryrefslogtreecommitdiff
path: root/dvbapi.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2000-11-01 11:45:05 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2000-11-01 11:45:05 +0100
commit25f085cc267760a43d2294406d3fdd6d14dc6e7f (patch)
tree2356c8ce7371ef124acfc01c999549bd2ad3d388 /dvbapi.c
parent10741c4c5447f042bdf365f36b258f2f7a2e5d39 (diff)
downloadvdr-25f085cc267760a43d2294406d3fdd6d14dc6e7f.tar.gz
vdr-25f085cc267760a43d2294406d3fdd6d14dc6e7f.tar.bz2
Improved Schedules menus
Diffstat (limited to 'dvbapi.c')
-rw-r--r--dvbapi.c20
1 files changed, 19 insertions, 1 deletions
diff --git a/dvbapi.c b/dvbapi.c
index f7272f76..cc246d2f 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.33 2000/10/29 10:39:57 kls Exp $
+ * $Id: dvbapi.c 1.34 2000/11/01 09:19:27 kls Exp $
*/
#include "dvbapi.h"
@@ -1598,6 +1598,24 @@ void cDvbApi::ClrEol(int x, int y, eDvbColor color)
Fill(x, y, cols - x, 1, color);
}
+int cDvbApi::CellWidth(void)
+{
+#ifdef DEBUG_OSD
+ return 1;
+#else
+ return charWidth;
+#endif
+}
+
+int cDvbApi::Width(unsigned char c)
+{
+#ifdef DEBUG_OSD
+ return 1;
+#else
+ return osd->Width(c);
+#endif
+}
+
void cDvbApi::Text(int x, int y, const char *s, eDvbColor colorFg, eDvbColor colorBg)
{
if (x < 0) x = cols + x;