# HG changeset patch # User Tomasz Mon <desowin@gmail.com> # Date 1195124843 -3600 # Node ID b352b7eb78c1c80f2003c7a3663dfa044573cdd5 # Parent edab215c50472a5376a58762d415beeb072eed37 unbreak some skins diff -r edab215c5047 -r b352b7eb78c1 src/audacious/skin.c --- 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);