diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2000-11-18 15:46:00 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2000-11-18 15:46:00 +0100 |
commit | ca42f7c8f144b2e342b9df821e3b841c7766bd05 (patch) | |
tree | 36a570851c57dc6c7ea9a91e3ea8793184ee9e32 /font.c | |
parent | 3e04208de3c7f29e69ff264b557c04074bb9b21c (diff) | |
download | vdr-ca42f7c8f144b2e342b9df821e3b841c7766bd05.tar.gz vdr-ca42f7c8f144b2e342b9df821e3b841c7766bd05.tar.bz2 |
Fixed font for system commands
Diffstat (limited to 'font.c')
-rw-r--r-- | font.c | 16 |
1 files changed, 11 insertions, 5 deletions
@@ -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... } } |