[vlc-commits] commit: skins2: fix RadiaSlider (typo) (Erwan Tulou )

git at videolan.org git at videolan.org
Thu Jul 1 12:06:30 CEST 2010


vlc | branch: master | Erwan Tulou <erwan10 at videolan.org> | Thu Jul  1 12:01:38 2010 +0200| [b6552403fd1f82512e2a682bc9a0ec3f71fa6c73] | committer: Erwan Tulou 

skins2: fix RadiaSlider (typo)

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=b6552403fd1f82512e2a682bc9a0ec3f71fa6c73
---

 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