]> git.sesse.net Git - vlc/commitdiff
skins2: fix RadiaSlider (typo)
authorErwan Tulou <erwan10@videolan.org>
Thu, 1 Jul 2010 10:01:38 +0000 (12:01 +0200)
committerErwan Tulou <erwan10@videolan.org>
Thu, 1 Jul 2010 10:04:42 +0000 (12:04 +0200)
modules/gui/skins2/controls/ctrl_radialslider.cpp

index 0ed18751c800c406237ac0a14953ce086d997ec8..43f9eb80fed015958527317f4946b0cc36549fb6 100644 (file)
@@ -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));