From 7069c592bd65ffbfdbf42fe7acf30ced20c84c59 Mon Sep 17 00:00:00 2001 From: reinelt <> Date: Sun, 17 Aug 2003 12:11:58 +0000 Subject: [lcd4linux @ 2003-08-17 12:11:58 by reinelt] framework for icons prepared --- display.c | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) (limited to 'display.c') 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; -- cgit v1.2.3