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 /Raster.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 'Raster.c')
-rw-r--r-- | Raster.c | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -1,4 +1,4 @@ -/* $Id: Raster.c,v 1.25 2003/08/24 05:17:58 reinelt Exp $ +/* $Id: Raster.c,v 1.26 2003/09/09 06:54:43 reinelt Exp $ * * driver for raster formats * @@ -20,6 +20,9 @@ * * * $Log: Raster.c,v $ + * Revision 1.26 2003/09/09 06:54:43 reinelt + * new function 'cfg_number()' + * * Revision 1.25 2003/08/24 05:17:58 reinelt * liblcd4linux patch from Patrick Schemitz * @@ -369,7 +372,7 @@ int Raster_init (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; if (sscanf(s=cfg_get("foreground","#102000"), "#%x", &foreground)!=1) { error ("Raster: bad foreground color '%s'", s); |