aboutsummaryrefslogtreecommitdiffstats
path: root/processor.c
diff options
context:
space:
mode:
authorreinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2003-08-17 16:37:39 +0000
committerreinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2003-08-17 16:37:39 +0000
commit946a5ef8dd7de4c8900dc52d5597b6ded3764394 (patch)
treef9151a571b5eb5cffde7b9fde4bb64ff6002f814 /processor.c
parenta7a01e3ffef0fdb4c3bb51afb2928c3f6828ccc9 (diff)
downloadlcd4linux-946a5ef8dd7de4c8900dc52d5597b6ded3764394.tar.gz
[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
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"));