diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2021-11-06 09:14:02 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2021-11-06 09:14:02 +0000 |
| commit | 0196e816b93310befb377a0fd69b5174bd572f0b (patch) | |
| tree | 0a0adbb230e33867838c9106a5f100fe92b24ac1 | |
| parent | 58c5efbec64447a88a6c52291caa7d9ef927d642 (diff) | |
| download | qmmp-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.cpp | 4 |
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; } |
