changeset 2983:048fa5c2b1db trunk

paint on obj instead on textbox->img while in oneway scroll mode
author Tomasz Mon <desowin@gmail.com>
date Wed, 04 Jul 2007 21:24:04 +0200
parents b5efea796fe8
children 13f8e30f335f
files src/audacious/ui_skinned_textbox.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/audacious/ui_skinned_textbox.c	Wed Jul 04 17:34:05 2007 +0200
+++ b/src/audacious/ui_skinned_textbox.c	Wed Jul 04 21:24:04 2007 +0200
@@ -285,15 +285,15 @@
 
                 if(textbox->pixmap_width - textbox->offset > textbox->width){ // case1
                     cw1 = textbox->width;
-                    gdk_draw_drawable(textbox->img, textbox->gc, textbox->pixmap, textbox->offset, 0,
+                    gdk_draw_drawable(obj, textbox->gc, textbox->pixmap, textbox->offset, 0,
                                       0, 0, cw1, textbox->height);
                 }
                 else { // case 2
                     cw1 = textbox->pixmap_width - textbox->offset;
-                    gdk_draw_drawable(textbox->img, textbox->gc, textbox->pixmap, textbox->offset, 0,
+                    gdk_draw_drawable(obj, textbox->gc, textbox->pixmap, textbox->offset, 0,
                                       0, 0, cw1, textbox->height);
                     cw2 = textbox->width - cw1;
-                    gdk_draw_drawable(textbox->img, textbox->gc, textbox->pixmap, 0, 0, cw1, 0, cw2, textbox->height);
+                    gdk_draw_drawable(obj, textbox->gc, textbox->pixmap, 0, 0, cw1, 0, cw2, textbox->height);
                 }
 
             }