# HG changeset patch # User nenolod # Date 1147649079 25200 # Node ID 3131795a78c4211fc6b536bf865281c914ba5ac7 # Parent 0390e4394c507b9d5cc9efdd8d0195d57723391e [svn] - performance boost diff -r 0390e4394c50 -r 3131795a78c4 audacious/playlist_list.c --- a/audacious/playlist_list.c Sun May 14 16:08:07 2006 -0700 +++ b/audacious/playlist_list.c Sun May 14 16:24:39 2006 -0700 @@ -118,7 +118,7 @@ #include #include -static GdkPixmap *get_transparency_pixmap(void) +GdkPixmap *get_transparency_pixmap(void) { Atom prop, type; int format; @@ -145,7 +145,7 @@ #else -static GdkPixmap *get_transparency_pixmap(void) +GdkPixmap *get_transparency_pixmap(void) { return NULL; } diff -r 0390e4394c50 -r 3131795a78c4 audacious/playlist_list.h --- a/audacious/playlist_list.h Sun May 14 16:08:07 2006 -0700 +++ b/audacious/playlist_list.h Sun May 14 16:24:39 2006 -0700 @@ -50,6 +50,6 @@ void playlist_list_set_font(const gchar * font); GdkPixmap *rootpix; GdkPixmap *shade_pixmap(GdkPixmap *in, gint x, gint y, gint x_offset, gint y_offset, gint w, gint h, GdkColor *shade_color); - +GdkPixmap *get_transparency_pixmap(void); #endif diff -r 0390e4394c50 -r 3131795a78c4 audacious/skin.c --- a/audacious/skin.c Sun May 14 16:08:07 2006 -0700 +++ b/audacious/skin.c Sun May 14 16:24:39 2006 -0700 @@ -164,6 +164,13 @@ return FALSE; skin_setup_masks(bmp_active_skin); + + if (rootpix != NULL) + g_object_unref(rootpix); + + rootpix = shade_pixmap(get_transparency_pixmap(), 0, 0, 0, 0, gdk_screen_width(), gdk_screen_height(), + skin_get_color(bmp_active_skin, SKIN_PLEDIT_NORMALBG)); + draw_main_window(TRUE); draw_playlist_window(TRUE); draw_equalizer_window(TRUE);