changeset 2967:53ebe56cb0ac trunk

fix scrolling when double-sized
author Tomasz Mon <desowin@gmail.com>
date Mon, 02 Jul 2007 12:50:26 +0200
parents dd4a213bab66
children 83f03505f819
files src/audacious/ui_skinned_textbox.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/audacious/ui_skinned_textbox.c	Mon Jul 02 12:40:56 2007 +0200
+++ b/src/audacious/ui_skinned_textbox.c	Mon Jul 02 12:50:26 2007 +0200
@@ -322,7 +322,7 @@
     priv->move_x = 0;
     priv->move_y = 0;
 
-    if (textbox->width != widget->allocation.width) {
+    if (textbox->width != widget->allocation.width/(priv->double_size ? 2 : 1)) {
         textbox->width = widget->allocation.width/(priv->double_size ? 2 : 1);
         priv->resize_width = 0;
         priv->resize_height = 0;