[xiph-commits] r11966 - trunk/sushivision

xiphmont at svn.xiph.org xiphmont at svn.xiph.org
Fri Oct 27 18:05:02 PDT 2006


Author: xiphmont
Date: 2006-10-27 18:05:00 -0700 (Fri, 27 Oct 2006)
New Revision: 11966

Modified:
   trunk/sushivision/slider.c
Log:
reduce min width requirements of sliders slightly



Modified: trunk/sushivision/slider.c
===================================================================
--- trunk/sushivision/slider.c	2006-10-28 00:58:49 UTC (rev 11965)
+++ trunk/sushivision/slider.c	2006-10-28 01:05:00 UTC (rev 11966)
@@ -479,10 +479,11 @@
     if(ex.height > maxy)maxy=ex.height;
   }
 
+  maxx*=1.5;
   // also check first + second label width
-  if(x0+x1 > maxx)maxx=x0+x1;
+  if(x0+x1*1.2 > maxx)maxx=(x0+x1)*1.2;
 
-  w = (maxx*1.5+2)*s->labels+4;
+  w = (maxx+2)*s->labels+4;
   requisition->width = (w+s->num_slices-1)/s->num_slices;
   requisition->height = maxy+4+s->ypad*2;
 



More information about the commits mailing list