changeset 1055:fc717728fd10 trunk

[svn] - don't blindly call shade_pixmap(). pointyhat to: me, pointed out by: yaz
author nenolod
date Mon, 15 May 2006 07:47:01 -0700
parents 2494d029279b
children 21628529c615
files audacious/skin.c
diffstat 1 files changed, 7 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/audacious/skin.c	Sun May 14 20:48:13 2006 -0700
+++ b/audacious/skin.c	Mon May 15 07:47:01 2006 -0700
@@ -165,11 +165,14 @@
 
     skin_setup_masks(bmp_active_skin);
 
-    if (rootpix != NULL)
-        g_object_unref(rootpix);
+    if (cfg.playlist_transparent)
+    {
+        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));
+        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);