changeset 3100:38ca234df0d9

correct doublesize
author Tomasz Mon <desowin@gmail.com>
date Thu, 19 Jul 2007 12:15:19 +0200
parents 4f011bf1d083
children b25db04ee2a1
files src/audacious/ui_skinned_equalizer_slider.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/audacious/ui_skinned_equalizer_slider.c	Thu Jul 19 11:17:41 2007 +0200
+++ b/src/audacious/ui_skinned_equalizer_slider.c	Thu Jul 19 12:15:19 2007 +0200
@@ -258,7 +258,7 @@
     if (event->type == GDK_BUTTON_PRESS) {
         if (event->button == 1) {
             priv->pressed = TRUE;
-            y = event->y;
+            y = event->y/(priv->double_size ? 2 : 1);
 
             if (y >= priv->position && y < priv->position + 11)
                 priv->drag_y = y - priv->position;
@@ -303,7 +303,7 @@
     if (priv->pressed) {
         gint y;
 
-        y = event->y;
+        y = event->y/(priv->double_size ? 2 : 1);
         priv->position = y - priv->drag_y;
 
         if (priv->position < 0)