changeset 3332:7ed2be7e885e trunk

fix doublesize
author Tomasz Mon <desowin@gmail.com>
date Sat, 11 Aug 2007 14:46:19 +0200
parents 9c53688bb559
children 612007382f0c
files src/audacious/ui_skinned_horizontal_slider.c
diffstat 1 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/audacious/ui_skinned_horizontal_slider.c	Sat Aug 11 07:34:28 2007 -0500
+++ b/src/audacious/ui_skinned_horizontal_slider.c	Sat Aug 11 14:46:19 2007 +0200
@@ -219,10 +219,11 @@
     widget->allocation = *allocation;
     widget->allocation.x *= (1+priv->double_size);
     widget->allocation.y *= (1+priv->double_size);
+
     if (priv->knob_height == priv->height)
-        priv->knob_height = allocation->height;
-    priv->width = allocation->width;
-    priv->height = allocation->height;
+        priv->knob_height = allocation->height/(priv->double_size ? 2 : 1);
+    priv->width = allocation->width/(priv->double_size ? 2 : 1);
+    priv->height = allocation->height/(priv->double_size ? 2 : 1);
 
     if (GTK_WIDGET_REALIZED (widget))
         gdk_window_move_resize(widget->window, widget->allocation.x, widget->allocation.y, allocation->width, allocation->height);