aboutsummaryrefslogtreecommitdiffstats
path: root/display.c
diff options
context:
space:
mode:
authorreinelt <>2003-08-17 12:11:58 +0000
committerreinelt <>2003-08-17 12:11:58 +0000
commit7069c592bd65ffbfdbf42fe7acf30ced20c84c59 (patch)
treec4478b210add468e37a2cf01444356130df0cb09 /display.c
parentb9f0cbbd27ef10ee727a30e8ee9dc61ef2ede842 (diff)
downloadlcd4linux-7069c592bd65ffbfdbf42fe7acf30ced20c84c59.tar.gz
[lcd4linux @ 2003-08-17 12:11:58 by reinelt]
framework for icons prepared
Diffstat (limited to 'display.c')
-rw-r--r--display.c18
1 files changed, 16 insertions, 2 deletions
diff --git a/display.c b/display.c
index 89b6f86..038dcf4 100644
--- a/display.c
+++ b/display.c
@@ -1,4 +1,4 @@
-/* $Id: display.c,v 1.35 2003/07/24 04:48:09 reinelt Exp $
+/* $Id: display.c,v 1.36 2003/08/17 12:11:58 reinelt Exp $
*
* framework for device drivers
*
@@ -20,6 +20,9 @@
*
*
* $Log: display.c,v $
+ * Revision 1.36 2003/08/17 12:11:58 reinelt
+ * framework for icons prepared
+ *
* Revision 1.35 2003/07/24 04:48:09 reinelt
* 'soft clear' needed for virtual rows
*
@@ -341,10 +344,21 @@ int lcd_bar (int type, int row, int col, int max, int len1, int len2)
if (!(type & BAR_T))
len2=(double)max*log(len2+1)/log(max);
}
- if (Lcd->put==NULL) return 0;
+ if (Lcd->bar==NULL) return 0;
return Lcd->bar (type & BAR_HV, row-1, col-1, max, len1, len2);
}
+int lcd_icon (int num, int row, int col, unsigned char *bitmap)
+{
+ if (num<1 || num>Lcd->icons) return -1;
+ if (row<1 || row>Lcd->rows) return -1;
+ if (col<1 || col>Lcd->cols) return -1;
+ if (Lcd->icon==NULL) return 0;
+
+ // Fixme: ToDo!
+ return 0;
+}
+
int lcd_gpo (int num, int val)
{
if (num<1 || num>Lcd->gpos) return -1;