aboutsummaryrefslogtreecommitdiffstats
path: root/processor.c
diff options
context:
space:
mode:
authorreinelt <>2003-08-17 16:37:39 +0000
committerreinelt <>2003-08-17 16:37:39 +0000
commit499739b95b99b54bc5d6feb793dd2ff1cea2c79e (patch)
treef9151a571b5eb5cffde7b9fde4bb64ff6002f814 /processor.c
parent7069c592bd65ffbfdbf42fe7acf30ced20c84c59 (diff)
downloadlcd4linux-499739b95b99b54bc5d6feb793dd2ff1cea2c79e.tar.gz
[lcd4linux @ 2003-08-17 16:37:39 by reinelt]
more icon framework
Diffstat (limited to 'processor.c')
-rw-r--r--processor.c16
1 files changed, 12 insertions, 4 deletions
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"));