From 9660f76b9498ca64ff2c0d3372ff6ce7d4a92090 Mon Sep 17 00:00:00 2001 From: reinelt Date: Sun, 26 Mar 2000 19:03:52 +0000 Subject: [lcd4linux @ 2000-03-26 19:03:52 by reinelt] more Pixmap renaming quoting of '#' in config file git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@23 3ae390bd-cb1e-0410-b409-cd5a39f66f1f --- README | 4 +++- Raster.c | 9 +++++++-- XWindow.c | 9 +++++++-- cfg.c | 10 ++++++++-- pixmap.h | 11 ++++++++--- 5 files changed, 33 insertions(+), 10 deletions(-) diff --git a/README b/README index cde123f..3840096 100644 --- a/README +++ b/README @@ -1,5 +1,5 @@ # -# $Id: README,v 1.1 2000/03/19 08:41:28 reinelt Exp $ +# $Id: README,v 1.2 2000/03/26 19:03:52 reinelt Exp $ # This is the README file for lcd4linux @@ -37,6 +37,8 @@ The configuration file (default: /etc/lcd4linux.conf) has a very simple format: Every line consists of a key and a value, seperated by whitespace (blanks or tabs). Values can contain whitespace, and can be enclosed in single or double quotes. A key must not contain whitespace. Keys are NOT case-sensitive. Order doesn't matter. +Empty lines and all text on a line after a '#' will be ignored. If you want to +use '#' in a value (think of X11-colors), you have to quote it with a backslash. The configuration file contains information for different modules of lcd4linux: diff --git a/Raster.c b/Raster.c index 295e973..78f2b9a 100644 --- a/Raster.c +++ b/Raster.c @@ -1,4 +1,4 @@ -/* $Id: Raster.c,v 1.5 2000/03/26 18:46:28 reinelt Exp $ +/* $Id: Raster.c,v 1.6 2000/03/26 19:03:52 reinelt Exp $ * * driver for raster formats * @@ -20,6 +20,11 @@ * * * $Log: Raster.c,v $ + * Revision 1.6 2000/03/26 19:03:52 reinelt + * + * more Pixmap renaming + * quoting of '#' in config file + * * Revision 1.5 2000/03/26 18:46:28 reinelt * * bug in pixmap.c that leaded to empty bars fixed @@ -120,7 +125,7 @@ int Raster_flush (void) int a, b; for (a=0; as && *(p-1)=='\\' && *p=='#') + if (*p=='\n' || (*p=='#' && (p==s || *(p-1)!='\\'))) { *p='\0'; break; } diff --git a/pixmap.h b/pixmap.h index 5dcc812..dc3fbae 100644 --- a/pixmap.h +++ b/pixmap.h @@ -1,4 +1,4 @@ -/* $Id: pixmap.h,v 1.2 2000/03/24 11:36:56 reinelt Exp $ +/* $Id: pixmap.h,v 1.3 2000/03/26 19:03:52 reinelt Exp $ * * generic pixmap driver * @@ -20,6 +20,11 @@ * * * $Log: pixmap.h,v $ + * Revision 1.3 2000/03/26 19:03:52 reinelt + * + * more Pixmap renaming + * quoting of '#' in config file + * * Revision 1.2 2000/03/24 11:36:56 reinelt * * new syntax for raster configuration @@ -37,9 +42,9 @@ #ifndef _PIXMAP_H_ #define _PIXMAP_H_ -extern unsigned char *Pixmap; +extern unsigned char *LCDpixmap; -int pix_clear(void); +int pix_clear (void); int pix_init (int rows, int cols, int xres, int yres); int pix_put (int row, int col, char *text); int pix_bar (int type, int row, int col, int max, int len1, int len2); -- cgit v1.2.3