summaryrefslogtreecommitdiff
path: root/font.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2000-11-18 15:46:00 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2000-11-18 15:46:00 +0100
commitca42f7c8f144b2e342b9df821e3b841c7766bd05 (patch)
tree36a570851c57dc6c7ea9a91e3ea8793184ee9e32 /font.c
parent3e04208de3c7f29e69ff264b557c04074bb9b21c (diff)
downloadvdr-ca42f7c8f144b2e342b9df821e3b841c7766bd05.tar.gz
vdr-ca42f7c8f144b2e342b9df821e3b841c7766bd05.tar.bz2
Fixed font for system commands
Diffstat (limited to 'font.c')
-rw-r--r--font.c16
1 files changed, 11 insertions, 5 deletions
diff --git a/font.c b/font.c
index 3ef40835..22c92be0 100644
--- a/font.c
+++ b/font.c
@@ -4,21 +4,27 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: font.c 1.1 2000/10/01 15:01:49 kls Exp $
+ * $Id: font.c 1.2 2000/11/18 15:16:08 kls Exp $
*/
#include "font.h"
#include "tools.h"
+#include "fontfix.c"
#include "fontosd.c"
-cFont::cFont(eDvbFont Font)//XXX
+cFont::cFont(eDvbFont Font)
{
+
+#define FONTINDEX(Name)\
+ case font##Name: for (int i = 0; i < NUMCHARS; i++)\
+ data[i] = (tCharData *)&Font##Name[i < 32 ? 0 : i - 32];\
+ break;
+
switch (Font) {
default:
- case fontOsd: for (int i = 0; i < NUMCHARS; i++)
- data[i] = (tCharData *)&FontOsd[i < 32 ? 0 : i - 32];
- break;
+ FONTINDEX(Osd);
+ FONTINDEX(Fix);
// TODO others...
}
}