[xiph-cvs] r6583 - trunk/postfish

xiphmont at xiph.org xiphmont at xiph.org
Tue May 4 21:26:09 PDT 2004



Author: xiphmont
Date: 2004-04-23 17:24:09 -0400 (Fri, 23 Apr 2004)
New Revision: 6583

Modified:
   trunk/postfish/multibar.c
Log:
Fix a sign error that caused the lower edge of a multibar reading to
be xpad*2 too low

<p><p>Modified: trunk/postfish/multibar.c
===================================================================
--- trunk/postfish/multibar.c	2004-04-23 09:21:55 UTC (rev 6582)
+++ trunk/postfish/multibar.c	2004-04-23 21:24:09 UTC (rev 6583)
@@ -127,7 +127,7 @@
           if(lowvals[i]>=m->levels[j]){
             if(lowvals[i]<=m->levels[j+1]){
               float del=(lowvals[i]-m->levels[j])/(m->levels[j+1]-m->levels[j]);
-	      pixlo[i]=(j+del)/m->labels*(widget->allocation.width-xpad*2-1)-xpad;
+	      pixlo[i]=(j+del)/m->labels*(widget->allocation.width-xpad*2-1)+xpad;
               break;
             }else if(j==m->labels){
               pixlo[i]=widget->allocation.width-xpad+1;
@@ -147,7 +147,6 @@
             }
           }else
             break;
-	
       }
       
       /* dampen movement according to setup */

--- >8 ----
List archives:  http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'cvs-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.



More information about the commits mailing list