[vlc-commits] commit: skins2: fix RadiaSlider (typo) (Erwan Tulou )
git at videolan.org
git at videolan.org
Thu Jul 1 12:12:06 CEST 2010
vlc/vlc-1.1 | branch: master | Erwan Tulou <erwan10 at videolan.org> | Thu Jul 1 12:01:38 2010 +0200| [eda9d31248483f77cb8d7b6ccd5bb62776246877] | committer: Erwan Tulou
skins2: fix RadiaSlider (typo)
(cherry picked from commit b6552403fd1f82512e2a682bc9a0ec3f71fa6c73)
> http://git.videolan.org/gitweb.cgi/vlc/vlc-1.1.git/?a=commit;h=eda9d31248483f77cb8d7b6ccd5bb62776246877
---
modules/gui/skins2/controls/ctrl_radialslider.cpp | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/modules/gui/skins2/controls/ctrl_radialslider.cpp b/modules/gui/skins2/controls/ctrl_radialslider.cpp
index 0ed1875..43f9eb8 100644
--- a/modules/gui/skins2/controls/ctrl_radialslider.cpp
+++ b/modules/gui/skins2/controls/ctrl_radialslider.cpp
@@ -142,7 +142,7 @@ void CtrlRadialSlider::setCursor( int posX, int posY, bool blocking )
// Compute the position relative to the center
int x = posX - pPos->getLeft() - m_width / 2;
- int y = posY - pPos->getTop() - m_width / 2;
+ int y = posY - pPos->getTop() - m_height / 2;
// Compute the polar coordinates. angle is -(-j,OM)
float r = sqrt((float)(x*x + y*y));
More information about the vlc-commits
mailing list