[xiph-commits] r12470 - trunk/sushivision
xiphmont at svn.xiph.org
xiphmont at svn.xiph.org
Wed Feb 14 00:59:02 PST 2007
Author: xiphmont
Date: 2007-02-14 00:59:01 -0800 (Wed, 14 Feb 2007)
New Revision: 12470
Modified:
trunk/sushivision/slider.c
Log:
Executive decision: always draw thumb sliders on integer pixel boundaries regardless of double-granularity internal value.
Modified: trunk/sushivision/slider.c
===================================================================
--- trunk/sushivision/slider.c 2007-02-14 08:55:59 UTC (rev 12469)
+++ trunk/sushivision/slider.c 2007-02-14 08:59:01 UTC (rev 12470)
@@ -299,7 +299,7 @@
// thumbs
for(i=0;i<s->num_slices;i++){
GtkWidget *sl = s->slices[i];
- double x = val_to_pixel(s,((Slice *)(s->slices[i]))->thumb_val)+.5;
+ double x = rint(val_to_pixel(s,((Slice *)(s->slices[i]))->thumb_val))+.5;
double rad = 2.;
More information about the commits
mailing list