From ca55019e85e081afe878a93ba0dc83a44d862de9 Mon Sep 17 00:00:00 2001 From: reinelt Date: Tue, 9 Sep 2003 05:30:34 +0000 Subject: [lcd4linux @ 2003-09-09 05:30:33 by reinelt] even more icons stuff git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@232 3ae390bd-cb1e-0410-b409-cd5a39f66f1f --- bar.c | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) (limited to 'bar.c') diff --git a/bar.c b/bar.c index 9b3f826..f6e96bf 100644 --- a/bar.c +++ b/bar.c @@ -1,4 +1,4 @@ -/* $Id: bar.c,v 1.7 2003/09/01 04:09:34 reinelt Exp $ +/* $Id: bar.c,v 1.8 2003/09/09 05:30:34 reinelt Exp $ * * generic bar handling * @@ -20,6 +20,9 @@ * * * $Log: bar.c,v $ + * Revision 1.8 2003/09/09 05:30:34 reinelt + * even more icons stuff + * * Revision 1.7 2003/09/01 04:09:34 reinelt * icons nearly finished, but MatrixOrbital only * @@ -211,8 +214,10 @@ int bar_draw (int type, int row, int col, int max, int len1, int len2) static void create_segments (void) { + int RES; int i, j, n; - + int l1, l2; + /* find first unused segment */ for (i=fSegment; iRES) l1=RES; + l2=Segment[i].len2; if (l2>RES) l2=RES; + if (l1 == Bar[n].len1 && l2 == Bar[n].len2) break; + } } if (i==nSegment) { nSegment++; -- cgit v1.2.3