aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2021-11-06 09:14:02 +0000
committertrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2021-11-06 09:14:02 +0000
commit0196e816b93310befb377a0fd69b5174bd572f0b (patch)
tree0a0adbb230e33867838c9106a5f100fe92b24ac1
parent58c5efbec64447a88a6c52291caa7d9ef927d642 (diff)
downloadqmmp-0196e816b93310befb377a0fd69b5174bd572f0b.tar.gz
qmmp-0196e816b93310befb377a0fd69b5174bd572f0b.tar.bz2
qmmp-0196e816b93310befb377a0fd69b5174bd572f0b.zip
skinned: fixed volume bar draw in the double size mode
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@10383 90c681e8-e032-0410-971d-27865f9a5e38
-rw-r--r--src/plugins/Ui/skinned/volumebar.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/Ui/skinned/volumebar.cpp b/src/plugins/Ui/skinned/volumebar.cpp
index 1119b83f9..a7dadfaa6 100644
--- a/src/plugins/Ui/skinned/volumebar.cpp
+++ b/src/plugins/Ui/skinned/volumebar.cpp
@@ -109,9 +109,9 @@ void VolumeBar::draw(bool pressed)
m_pixmap = m_skin->getVolumeBar(27*(m_value-m_min)/(m_max-m_min));
QPainter paint(&m_pixmap);
if(pressed)
- paint.drawPixmap(p,1,m_skin->getButton(Skin::BT_VOL_P));
+ paint.drawPixmap(p, 1 * m_skin->ratio(), m_skin->getButton(Skin::BT_VOL_P));
else
- paint.drawPixmap(p,1,m_skin->getButton(Skin::BT_VOL_N));
+ paint.drawPixmap(p, 1 * m_skin->ratio(), m_skin->getButton(Skin::BT_VOL_N));
setPixmap(m_pixmap);
m_pos = p;
}