Mercurial > audlegacy
diff src/audacious/ui_skinned_window.c @ 4212:47352b34dbdf
introduce ui_skinned_widget_draw
author | Tomasz Mon <desowin@gmail.com> |
---|---|
date | Tue, 22 Jan 2008 22:40:48 +0100 |
parents | 2281da647da9 |
children | 75d99359357b |
line wrap: on
line diff
--- a/src/audacious/ui_skinned_window.c Mon Jan 21 02:46:44 2008 +0200 +++ b/src/audacious/ui_skinned_window.c Tue Jan 22 22:40:48 2008 +0100 @@ -203,15 +203,8 @@ break; } - if (window->type != WINDOW_PLAYLIST && cfg.doublesize) { - GdkPixbuf *image = gdk_pixbuf_scale_simple(obj, width*2, height*2, GDK_INTERP_NEAREST); - gdk_draw_pixbuf(widget->window, NULL, image, 0, 0, 0, 0, width*2, height*2, - GDK_RGB_DITHER_NONE, 0, 0); - g_object_unref(image); - } else { - gdk_draw_pixbuf(widget->window, NULL, obj, 0, 0, 0, 0, width, height, - GDK_RGB_DITHER_NONE, 0, 0); - } + ui_skinned_widget_draw(GTK_WIDGET(window), obj, width, height, + window->type != WINDOW_PLAYLIST && cfg.doublesize); g_object_unref(obj);