Commit eda9d312 authored by Erwan Tulou's avatar Erwan Tulou

skins2: fix RadiaSlider (typo)

(cherry picked from commit b6552403fd1f82512e2a682bc9a0ec3f71fa6c73)
parent f6a67e80
......@@ -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));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment