aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2007-09-03 20:07:49 +0000
committertrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2007-09-03 20:07:49 +0000
commit0843db1a08e67164ca5af629e146798223a86831 (patch)
treeaf453d78da22966dfaffcc06ed70ed6186d3093c /src
parent8f4cb7005b3ab5d86db694edf9e08ff61502a0ab (diff)
downloadqmmp-0843db1a08e67164ca5af629e146798223a86831.tar.gz
qmmp-0843db1a08e67164ca5af629e146798223a86831.tar.bz2
qmmp-0843db1a08e67164ca5af629e146798223a86831.zip
fixed skin parsing
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@136 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src')
-rw-r--r--src/skin.cpp14
1 files changed, 12 insertions, 2 deletions
diff --git a/src/skin.cpp b/src/skin.cpp
index 7f07c4a5d..12a7ae13f 100644
--- a/src/skin.cpp
+++ b/src/skin.cpp
@@ -179,8 +179,18 @@ void Skin::loadPosBar()
if (!pixmap)
pixmap = getDummyPixmap("posbar");
- buttons[BT_POSBAR_N] = pixmap->copy ( 248,0,29, pixmap->height());
- buttons[BT_POSBAR_P] = pixmap->copy ( 278,0,29, pixmap->height());
+ if (pixmap->width() > 249)
+ {
+ buttons[BT_POSBAR_N] = pixmap->copy ( 248,0,29, pixmap->height());
+ buttons[BT_POSBAR_P] = pixmap->copy ( 278,0,29, pixmap->height());
+ }
+ else
+ {
+ QPixmap dummy(29, pixmap->height());
+ dummy.fill(Qt::transparent);
+ buttons[BT_POSBAR_N] = dummy;
+ buttons[BT_POSBAR_P] = dummy;
+ }
posbar = pixmap->copy ( 0,0,248,pixmap->height() );
delete pixmap;