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 --- MatrixOrbital.c | 43 ++++++++++++++++++++++++------------------- 1 file changed, 24 insertions(+), 19 deletions(-) (limited to 'MatrixOrbital.c') diff --git a/MatrixOrbital.c b/MatrixOrbital.c index 1e9a5dc..833c794 100644 --- a/MatrixOrbital.c +++ b/MatrixOrbital.c @@ -1,4 +1,4 @@ -/* $Id: MatrixOrbital.c,v 1.11 2000/03/25 05:50:43 reinelt Exp $ +/* $Id: MatrixOrbital.c,v 1.12 2000/03/26 18:46:28 reinelt Exp $ * * driver for Matrix Orbital serial display modules * @@ -20,6 +20,11 @@ * * * $Log: MatrixOrbital.c,v $ + * Revision 1.12 2000/03/26 18:46:28 reinelt + * + * bug in pixmap.c that leaded to empty bars fixed + * name conflicts with X11 resolved + * * Revision 1.11 2000/03/25 05:50:43 reinelt * * memory leak in Raster_flush closed @@ -65,7 +70,7 @@ * * exported fuctions: * - * struct DISPLAY MatrixOrbital[] + * struct LCD MatrixOrbital[] * */ @@ -86,7 +91,7 @@ #define CHARS 8 #define BARS ( BAR_L | BAR_R | BAR_U | BAR_D | BAR_H2 ) -static DISPLAY Display; +static LCD Lcd; static char *Port=NULL; static speed_t Speed; static int Device=-1; @@ -172,8 +177,8 @@ static void MO_process_bars (void) } nSegment=i; - for (row=0; row0 && col<=Display.cols) { + while (max>0 && col<=Lcd.cols) { Bar[row][col].type=type; Bar[row][col].segment=-1; if (len1>=XRES) { @@ -455,7 +460,7 @@ int MO_bar (int type, int row, int col, int max, int len1, int len2) rev=1; case BAR_D: - while (max>0 && row<=Display.rows) { + while (max>0 && row<=Lcd.rows) { Bar[row][col].type=type; Bar[row][col].segment=-1; if (len1>=YRES) { @@ -495,19 +500,19 @@ int MO_flush (void) Segment[s].used=0; } - for (row=0; row