From 946a5ef8dd7de4c8900dc52d5597b6ded3764394 Mon Sep 17 00:00:00 2001 From: reinelt Date: Sun, 17 Aug 2003 16:37:39 +0000 Subject: [lcd4linux @ 2003-08-17 16:37:39 by reinelt] more icon framework git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@222 3ae390bd-cb1e-0410-b409-cd5a39f66f1f --- processor.c | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to 'processor.c') diff --git a/processor.c b/processor.c index a70c798..ca3f91e 100644 --- a/processor.c +++ b/processor.c @@ -1,4 +1,4 @@ -/* $Id: processor.c,v 1.35 2003/07/24 04:48:09 reinelt Exp $ +/* $Id: processor.c,v 1.36 2003/08/17 16:37:39 reinelt Exp $ * * main data processing * @@ -20,6 +20,9 @@ * * * $Log: processor.c,v $ + * Revision 1.36 2003/08/17 16:37:39 reinelt + * more icon framework + * * Revision 1.35 2003/07/24 04:48:09 reinelt * 'soft clear' needed for virtual rows * @@ -193,11 +196,12 @@ #include "exec.h" #define ROWS 64 +#define ICONS 8 #define GPOS 16 static char *row[ROWS+1]; static int gpo[GPOS+1]; -static int rows, cols, xres, yres, supported_bars, gpos; +static int rows, cols, xres, yres, supported_bars, icons, gpos; static int lines, scroll, turn; static int token_usage[256]={0,}; @@ -729,16 +733,20 @@ void process_init (void) load.overload=atof(cfg_get("overload","2.0")); - lcd_query (&rows, &cols, &xres, &yres, &supported_bars, &gpos); + lcd_query (&rows, &cols, &xres, &yres, &supported_bars, &icons, &gpos); if (rows>ROWS) { error ("%d rows exceeds limit, reducing to %d rows", rows, ROWS); rows=ROWS; } + if (icons>ICONS) { + error ("%d icons exceeds limit, reducing to %d icons", icons, ICONS); + icons=ICONS; + } if (gpos>GPOS) { error ("%d gpos exceeds limit, reducing to %d gpos", gpos, GPOS); gpos=GPOS; } - debug ("Display: %d rows, %d columns, %dx%d pixels, %d GPOs", rows, cols, xres, yres, gpos); + debug ("Display: %d rows, %d columns, %dx%d pixels, %d icons, %d GPOs", rows, cols, xres, yres, icons, gpos); lines=atoi(cfg_get("Rows","1")); -- cgit v1.2.3