Commit 5e68e549 authored by Monty Montgomery's avatar Monty Montgomery

Align thumbs within trough of multibar


git-svn-id: https://svn.xiph.org/trunk/postfish@5827 0101bb08-14d6-0310-b084-bc0e0c8e3800
parent dac04b7d
......@@ -380,8 +380,8 @@ static void draw(GtkWidget *widget,int n){
if(m->thumbs){
int height=widget->allocation.height;
GdkGC *black_gc=widget->style->black_gc;
int y=height/2-2;
int y1=height-2;
int y=height/2-3;
int y1=height-3;
int y0=y-(y1-y-1);
GdkColor yellow={0,0xff00,0xd000,0};
......@@ -618,14 +618,14 @@ static gint determine_thumb(GtkWidget *widget,int ix, int iy){
int num=(m->thumbs==1?0:1);
int x= ix-m->thumbpixel[num];
int y= iy-(height*4/5-1);
int y= iy-(height*4/5-2);
distances[num]=sqrt(x*x + y*y);
}
/* left thumb */
if(m->thumbs>1){
int x= ix-(m->thumbpixel[0]-(height/2));
int y= iy-(height/2-2);
int y= iy-(height/2-3);
distances[0]=sqrt(x*x + y*y);
}
......@@ -633,7 +633,7 @@ static gint determine_thumb(GtkWidget *widget,int ix, int iy){
if(m->thumbs>1){
int num=(m->thumbs==2?1:2);
int x= ix-(m->thumbpixel[num]+(height/2));
int y= iy-(height/2-2);
int y= iy-(height/2-3);
distances[num]=sqrt(x*x + y*y);
}
......
#define VERSION "$Id: version.h,v 1.27 2004/02/15 15:14:15 xiphmont Exp $ "
/* DO NOT EDIT: Automated versioning hack [Sun Feb 15 09:50:39 EST 2004] */
#define VERSION "$Id: version.h,v 1.28 2004/02/15 22:38:15 xiphmont Exp $ "
/* DO NOT EDIT: Automated versioning hack [Sun Feb 15 10:22:58 EST 2004] */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment