changeset 2917:e968134f11ed trunk

fix dragging textbox
author Tomasz Mon <desowin@gmail.com>
date Fri, 29 Jun 2007 10:16:01 +0200
parents 3ef909ed3056
children 4e71092ab29b
files src/audacious/ui_skinned_textbox.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/audacious/ui_skinned_textbox.c	Fri Jun 29 09:57:17 2007 +0200
+++ b/src/audacious/ui_skinned_textbox.c	Fri Jun 29 10:16:01 2007 +0200
@@ -347,10 +347,10 @@
             priv->offset = priv->drag_off - (event->x - priv->drag_x);
 
             while (priv->offset < 0)
-                priv->offset += priv->pixmap_width;
+                priv->offset = 0;
 
             while (priv->offset > (priv->pixmap_width - priv->w))
-                priv->offset -= priv->pixmap_width;
+                priv->offset = (priv->pixmap_width - priv->w);
 
             ui_skinned_textbox_redraw(textbox);
         }