From 429036b6886e31a8d20024f73a203e1d4c3e2f65 Mon Sep 17 00:00:00 2001 From: reinelt <> Date: Sun, 26 Mar 2000 18:46:28 +0000 Subject: [lcd4linux @ 2000-03-26 18:46:28 by reinelt] bug in pixmap.c that leaded to empty bars fixed name conflicts with X11 resolved --- pixmap.c | 33 ++++++++++++++++++++------------- 1 file changed, 20 insertions(+), 13 deletions(-) (limited to 'pixmap.c') diff --git a/pixmap.c b/pixmap.c index 3f20c9e..c266a65 100644 --- a/pixmap.c +++ b/pixmap.c @@ -1,4 +1,4 @@ -/* $Id: pixmap.c,v 1.4 2000/03/25 05:50:43 reinelt Exp $ +/* $Id: pixmap.c,v 1.5 2000/03/26 18:46:28 reinelt Exp $ * * generic pixmap driver * @@ -20,6 +20,11 @@ * * * $Log: pixmap.c,v $ + * Revision 1.5 2000/03/26 18:46:28 reinelt + * + * bug in pixmap.c that leaded to empty bars fixed + * name conflicts with X11 resolved + * * Revision 1.4 2000/03/25 05:50:43 reinelt * * memory leak in Raster_flush closed @@ -72,14 +77,14 @@ static int COLS=0; static int XRES=0; static int YRES=0; -unsigned char *Pixmap=NULL; +unsigned char *LCDpixmap=NULL; int pix_clear(void) { int i; for (i=0; i>=1; - Pixmap[(row+y)*COLS+col+x]=Fontmap[c][y]&mask?1:0; + if (c!='\t') { + for (y=0; y>=1; + LCDpixmap[(row+y)*COLS+col+x]=Fontmap[c][y]&mask?1:0; + } } } col+=XRES; @@ -159,7 +166,7 @@ int pix_bar (int type, int row, int col, int max, int len1, int len2) for (y=0; y