diff options
author | ltoetsch <ltoetsch@3ae390bd-cb1e-0410-b409-cd5a39f66f1f> | 2001-03-16 16:40:17 +0000 |
---|---|---|
committer | ltoetsch <ltoetsch@3ae390bd-cb1e-0410-b409-cd5a39f66f1f> | 2001-03-16 16:40:17 +0000 |
commit | 3d24b9bd4612dd293bde38976798288ecb4e1722 (patch) | |
tree | 169f4a2f4abeba86179b873110769a0100e339ce /display.c | |
parent | 8cb47a24a9ab1b5bbf81819d4567be4308db2b54 (diff) | |
download | lcd4linux-3d24b9bd4612dd293bde38976798288ecb4e1722.tar.gz |
[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
Diffstat (limited to '')
-rw-r--r-- | display.c | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -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); |