Commit b6552403 authored by Erwan Tulou's avatar Erwan Tulou

skins2: fix RadiaSlider (typo)

parent a2bd0738
...@@ -142,7 +142,7 @@ void CtrlRadialSlider::setCursor( int posX, int posY, bool blocking ) ...@@ -142,7 +142,7 @@ void CtrlRadialSlider::setCursor( int posX, int posY, bool blocking )
// Compute the position relative to the center // Compute the position relative to the center
int x = posX - pPos->getLeft() - m_width / 2; 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) // Compute the polar coordinates. angle is -(-j,OM)
float r = sqrt((float)(x*x + y*y)); 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