changeset 3938:b352b7eb78c1

unbreak some skins
author Tomasz Mon <desowin@gmail.com>
date Thu, 15 Nov 2007 12:07:23 +0100
parents edab215c5047
children d46d60247826
files src/audacious/skin.c
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/audacious/skin.c	Thu Nov 15 11:42:46 2007 +0100
+++ b/src/audacious/skin.c	Thu Nov 15 12:07:23 2007 +0100
@@ -1753,6 +1753,12 @@
                 }
 
                 if (x && y) {
+                    /* Some skins include SKIN_VOLUME and/or SKIN_BALANCE
+                       without knobs */
+                    if (pixmap_id == SKIN_VOLUME || pixmap_id == SKIN_BALANCE) {
+                        if (ysrc+height > 421 && xsrc+width <= pixmap->width)
+                            return;
+                    }
                     /* let's copy what's under widget */
                     gdk_draw_drawable(drawable, gc, skin_get_pixmap(bmp_active_skin, SKIN_MAIN)->pixmap,
                                       x + xdest, y, xdest, ydest, width, height);