summaryrefslogtreecommitdiff
path: root/osd.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2004-05-22 13:53:32 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2004-05-22 13:53:32 +0200
commit8eff25b8de89fb536b7cd78d25af8907e615e605 (patch)
tree125f26d8e4313bac7a62573871f7731f96549ac1 /osd.c
parent5aacc51c14491fa029f6408f45685bf505c606b5 (diff)
downloadvdr-8eff25b8de89fb536b7cd78d25af8907e615e605.tar.gz
vdr-8eff25b8de89fb536b7cd78d25af8907e615e605.tar.bz2
When processing XPM data, the color name "None" is no mapped to #00000000
Diffstat (limited to 'osd.c')
-rw-r--r--osd.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/osd.c b/osd.c
index 94668623..077cd9c1 100644
--- a/osd.c
+++ b/osd.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: osd.c 1.46 2004/05/16 09:25:06 kls Exp $
+ * $Id: osd.c 1.47 2004/05/22 13:47:39 kls Exp $
*/
#include "osd.h"
@@ -264,6 +264,8 @@ bool cBitmap::SetXpm(char *Xpm[])
return false;
}
s = skipspace(s + 1);
+ if (strcasecmp(s, "none") == 0)
+ s = "#00000000";
if (*s != '#') {
esyslog("ERROR: unknown color code in XPM: '%c'", *s);
return false;