Mercurial > audlegacy
diff src/audacious/widgets/skin.c @ 3001:6d4b7b739232 trunk
fully implement UiSkinnedNumber, number.c no longer needed
author | Tomasz Mon <desowin@gmail.com> |
---|---|
date | Sun, 08 Jul 2007 12:21:09 +0200 |
parents | 15f6c9949cde |
children | 6065d70cb790 |
line wrap: on
line diff
--- a/src/audacious/widgets/skin.c Sun Jul 08 10:23:16 2007 +0200 +++ b/src/audacious/widgets/skin.c Sun Jul 08 12:21:09 2007 +0200 @@ -1619,8 +1619,12 @@ g_return_if_fail(pixmap != NULL); g_return_if_fail(pixmap->pixmap != NULL); - if (xsrc > pixmap->width || ysrc > pixmap->height) - return; + if (xsrc+width > pixmap->width || ysrc+height > pixmap->height) { + if (pixmap_id == SKIN_NUMBERS) + xsrc = 90; + else + return; + } width = MIN(width, pixmap->width - xsrc); height = MIN(height, pixmap->height - ysrc);