diff options
author | reinelt <> | 2003-09-09 06:54:43 +0000 |
---|---|---|
committer | reinelt <> | 2003-09-09 06:54:43 +0000 |
commit | b1f5fffddaf31835515f88859f8a4670b6252deb (patch) | |
tree | c78e80eb3a22e818c6039ca5aa68c7f46000fd94 /XWindow.c | |
parent | b39a42b909dfb1c174044cf977d272f94445b18e (diff) | |
download | lcd4linux-b1f5fffddaf31835515f88859f8a4670b6252deb.tar.gz |
[lcd4linux @ 2003-09-09 06:54:43 by reinelt]
new function 'cfg_number()'
Diffstat (limited to 'XWindow.c')
-rw-r--r-- | XWindow.c | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -1,4 +1,4 @@ -/* $Id: XWindow.c,v 1.32 2003/07/24 04:48:09 reinelt Exp $ +/* $Id: XWindow.c,v 1.33 2003/09/09 06:54:43 reinelt Exp $ * * X11 Driver for LCD4Linux * @@ -20,6 +20,9 @@ * * * $Log: XWindow.c,v $ + * Revision 1.33 2003/09/09 06:54:43 reinelt + * new function 'cfg_number()' + * * Revision 1.32 2003/07/24 04:48:09 reinelt * 'soft clear' needed for virtual rows * @@ -414,7 +417,9 @@ int xlcdinit(LCD *Self) } if (rgap<0) rgap=pixel+pgap; if (cgap<0) cgap=pixel+pgap; - border=atoi(cfg_get("border","0")); + + if (cfg_number("border", 0, 0, 1000000, &border)<0) return -1; + rgbfg=cfg_get("foreground","#000000"); rgbbg=cfg_get("background","#80d000"); rgbhg=cfg_get("halfground","#70c000"); |