aboutsummaryrefslogtreecommitdiff
path: root/src/ui/skin.cpp
diff options
context:
space:
mode:
authortrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2008-08-13 14:10:55 +0000
committertrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2008-08-13 14:10:55 +0000
commitb5833f9423ecdc673f653dbb3f4bca6dacc918c1 (patch)
tree3ab466ec064339c789fc6f43d15c085659621413 /src/ui/skin.cpp
parente16f15ff12eb654d2c09f5a280d28389a3ad74fc (diff)
downloadqmmp-b5833f9423ecdc673f653dbb3f4bca6dacc918c1.tar.gz
qmmp-b5833f9423ecdc673f653dbb3f4bca6dacc918c1.tar.bz2
qmmp-b5833f9423ecdc673f653dbb3f4bca6dacc918c1.zip
imported 0.2 fixes
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@495 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/ui/skin.cpp')
-rw-r--r--src/ui/skin.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/ui/skin.cpp b/src/ui/skin.cpp
index 422742bb4..269154d5b 100644
--- a/src/ui/skin.cpp
+++ b/src/ui/skin.cpp
@@ -338,7 +338,12 @@ void Skin::loadEqMain()
m_eq_parts[ EQ_MAIN ] = pixmap->copy ( 0,0,275,116 );
m_eq_parts[ EQ_TITLEBAR_A ] = pixmap->copy ( 0,134,275,14 );
m_eq_parts[ EQ_TITLEBAR_I ] = pixmap->copy ( 0,149,275,14 );
- m_eq_parts[ EQ_GRAPH ] = pixmap->copy ( 0,294,113,19 );
+
+ if(pixmap->height() > 295)
+ m_eq_parts[ EQ_GRAPH ] = pixmap->copy ( 0,294,113,19 );
+ else
+ m_eq_parts[ EQ_GRAPH ] = QPixmap();
+
for ( int i = 0; i < 14; ++i )
{
m_eq_bar << pixmap->copy ( 13 + i*15,164,14,63 );