mirror of
https://github.com/netfun2000/lcd4linux.git
synced 2026-02-27 09:44:34 +08:00
[lcd4linux @ 2000-03-17 09:21:42 by reinelt]
various memory statistics added git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@11 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/* $Id: display.c,v 1.5 2000/03/13 15:58:24 reinelt Exp $
|
||||
/* $Id: display.c,v 1.6 2000/03/17 09:21:42 reinelt Exp $
|
||||
*
|
||||
* framework for device drivers
|
||||
*
|
||||
@@ -20,6 +20,10 @@
|
||||
*
|
||||
*
|
||||
* $Log: display.c,v $
|
||||
* Revision 1.6 2000/03/17 09:21:42 reinelt
|
||||
*
|
||||
* various memory statistics added
|
||||
*
|
||||
* Revision 1.5 2000/03/13 15:58:24 reinelt
|
||||
*
|
||||
* release 0.9
|
||||
@@ -127,11 +131,10 @@ int lcd_bar (int type, int row, int col, int max, int len1, int len2)
|
||||
if (col<1 || col>Display->cols) return -1;
|
||||
if (!(type & (BAR_H2 | BAR_V2))) len2=len1;
|
||||
if (type & BAR_LOG) {
|
||||
type &= ~BAR_LOG;
|
||||
len1=(double)max*log(len1+1)/log(max);
|
||||
len2=(double)max*log(len2+1)/log(max);
|
||||
}
|
||||
return Display->bar(type, row-1, col-1, max, len1, len2);
|
||||
return Display->bar (type & BAR_HV, row-1, col-1, max, len1, len2);
|
||||
}
|
||||
|
||||
int lcd_flush (void)
|
||||
|
||||
Reference in New Issue
Block a user