aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorherp <herp@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2000-04-01 19:33:45 +0000
committerherp <herp@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2000-04-01 19:33:45 +0000
commitf57c269d1021264773a167491ac8fe5d1b8ca625 (patch)
treeedf47fe3e82e85573deda36842e87820ca11e6ba
parent194757539bf5f48d105f2739502c8b91af650ec8 (diff)
downloadlcd4linux-f57c269d1021264773a167491ac8fe5d1b8ca625.tar.gz
[lcd4linux @ 2000-04-01 19:33:45 by herp]
colors in format \#RRGGBB in config-file now understood git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@30 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
-rw-r--r--XWindow.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/XWindow.c b/XWindow.c
index fec5936..d0bfa0d 100644
--- a/XWindow.c
+++ b/XWindow.c
@@ -1,4 +1,4 @@
-/* $Id: XWindow.c,v 1.11 2000/04/01 16:22:38 reinelt Exp $
+/* $Id: XWindow.c,v 1.12 2000/04/01 19:33:45 herp Exp $
*
* X11 Driver for LCD4Linux
*
@@ -20,6 +20,10 @@
*
*
* $Log: XWindow.c,v $
+ * Revision 1.12 2000/04/01 19:33:45 herp
+ *
+ * colors in format \#RRGGBB in config-file now understood
+ *
* Revision 1.11 2000/04/01 16:22:38 reinelt
*
* bug that caused a segfault in processor.c fixed (thanks to herp)
@@ -54,7 +58,7 @@
/*
- *
+ * Sat Apr 1 22:18:04 MET 2000 colors in format \#RRGGBB in config-file
* Fri Mar 31 01:42:11 MET 2000 semaphore bug fixed
* Sun Mar 26 15:28:23 MET 2000 various rewrites
* Sat Mar 25 23:58:19 MET 2000 use generic pixmap driver
@@ -295,7 +299,9 @@ char *s;
rgbfg=cfg_get("foreground")?:"#000000";
rgbbg=cfg_get("background")?:"#80d000";
rgbhg=cfg_get("halfground")?:"#70c000";
-
+ if (*rgbfg=='\\') rgbfg++;
+ if (*rgbbg=='\\') rgbbg++;
+ if (*rgbhg=='\\') rgbhg++;
if (pix_init(rows,cols,xres,yres)==-1) return -1;
if (init_x(rows,cols,xres,yres)==-1) return -1;