Mercurial > audlegacy
changeset 2958:afc8f8c21e75 trunk
use priv->pixmap instead of src
author | Tomasz Mon <desowin@gmail.com> |
---|---|
date | Sun, 01 Jul 2007 18:58:09 +0200 |
parents | c859aa1a1a4e |
children | af954739cc89 |
files | src/audacious/ui_skinned_textbox.c |
diffstat | 1 files changed, 2 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/src/audacious/ui_skinned_textbox.c Sun Jul 01 18:51:36 2007 +0200 +++ b/src/audacious/ui_skinned_textbox.c Sun Jul 01 18:58:09 2007 +0200 @@ -402,7 +402,6 @@ textbox->redraw = FALSE; gint cw; GdkPixmap *obj; - GdkPixmap *src; if (textbox->text && (!priv->pixmap_text || strcmp(textbox->text, priv->pixmap_text))) textbox_generate_pixmap(textbox); @@ -413,14 +412,13 @@ textbox_generate_pixmap(textbox); } obj = gdk_pixmap_new(NULL, textbox->width, textbox->height, gdk_rgb_get_visual()->depth); - src = priv->pixmap; cw = priv->pixmap_width - priv->offset; if (cw > textbox->width) cw = textbox->width; - gdk_draw_drawable(obj, priv->gc, src, priv->offset, 0, 0, 0, cw, textbox->height); + gdk_draw_drawable(obj, priv->gc, priv->pixmap, priv->offset, 0, 0, 0, cw, textbox->height); if (cw < textbox->width) - gdk_draw_drawable(obj, priv->gc, src, 0, 0, + gdk_draw_drawable(obj, priv->gc, priv->pixmap, 0, 0, textbox->x + cw, textbox->y, textbox->width - cw, textbox->height);