From 3d24b9bd4612dd293bde38976798288ecb4e1722 Mon Sep 17 00:00:00 2001 From: ltoetsch Date: Fri, 16 Mar 2001 16:40:17 +0000 Subject: [lcd4linux @ 2001-03-16 16:40:17 by ltoetsch] implemented time bar git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@127 3ae390bd-cb1e-0410-b409-cd5a39f66f1f --- display.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'display.c') diff --git a/display.c b/display.c index 1e56e99..229da60 100644 --- a/display.c +++ b/display.c @@ -1,4 +1,4 @@ -/* $Id: display.c,v 1.27 2001/03/15 14:25:05 ltoetsch Exp $ +/* $Id: display.c,v 1.28 2001/03/16 16:40:17 ltoetsch Exp $ * * framework for device drivers * @@ -20,6 +20,9 @@ * * * $Log: display.c,v $ + * Revision 1.28 2001/03/16 16:40:17 ltoetsch + * implemented time bar + * * Revision 1.27 2001/03/15 14:25:05 ltoetsch * added unread/total news * @@ -291,10 +294,11 @@ int lcd_bar (int type, int row, int col, int max, int len1, int len2) { if (row<1 || row>Lcd->rows) return -1; if (col<1 || col>Lcd->cols) return -1; - if (!(type & (BAR_H2 | BAR_V2))) len2=len1; + if (!(type & (BAR_H2 | BAR_V2 | BAR_T))) len2=len1; if (type & BAR_LOG) { len1=(double)max*log(len1+1)/log(max); - len2=(double)max*log(len2+1)/log(max); + if (!(type & BAR_T)) + len2=(double)max*log(len2+1)/log(max); } if (Lcd->put==NULL) return 0; return Lcd->bar (type & BAR_HV, row-1, col-1, max, len1, len2); -- cgit v1.2.3