aboutsummaryrefslogtreecommitdiffstats
path: root/Raster.c
diff options
context:
space:
mode:
authorreinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2000-04-03 04:01:31 +0000
committerreinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2000-04-03 04:01:31 +0000
commitc82e27017cc2ab5e3702964705fcad3768642fbe (patch)
tree70aa9c6a57b1cc7d76d7818de7544f4d211f5acb /Raster.c
parent568f40eacc6d00d5105b308665ca2b3428000faf (diff)
downloadlcd4linux-c82e27017cc2ab5e3702964705fcad3768642fbe.tar.gz
[lcd4linux @ 2000-04-03 04:01:31 by reinelt]
if 'gap' is specified as -1, a gap of (pixelsize+pixelgap) is selected automatically git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@33 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
Diffstat (limited to 'Raster.c')
-rw-r--r--Raster.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/Raster.c b/Raster.c
index f0a25ea..d2eba13 100644
--- a/Raster.c
+++ b/Raster.c
@@ -1,4 +1,4 @@
-/* $Id: Raster.c,v 1.8 2000/03/28 07:22:15 reinelt Exp $
+/* $Id: Raster.c,v 1.9 2000/04/03 04:01:31 reinelt Exp $
*
* driver for raster formats
*
@@ -20,6 +20,10 @@
*
*
* $Log: Raster.c,v $
+ * Revision 1.9 2000/04/03 04:01:31 reinelt
+ *
+ * if 'gap' is specified as -1, a gap of (pixelsize+pixelgap) is selected automatically
+ *
* Revision 1.8 2000/03/28 07:22:15 reinelt
*
* version 0.95 released
@@ -226,10 +230,12 @@ int Raster_init (LCD *Self)
return -1;
}
- if (sscanf(s=cfg_get("gap")?:"3x3", "%dx%d", &cgap, &rgap)!=2 || cgap<0 || rgap<0) {
+ if (sscanf(s=cfg_get("gap")?:"3x3", "%dx%d", &cgap, &rgap)!=2 || cgap<-1 || rgap<-1) {
fprintf (stderr, "Raster: bad gap '%s'\n", s);
return -1;
}
+ if (rgap<0) rgap=pixel+pgap;
+ if (cgap<0) cgap=pixel+pgap;
border=atoi(cfg_get("border")?:"0");