Commit b5368e36 authored by Wayne Stambaugh's avatar Wayne Stambaugh

Fix 3D pad drawing bug. Fixes 855288.

parent 98886a6d
...@@ -346,8 +346,10 @@ void RotatePoint( double* pX, double* pY, int angle ) ...@@ -346,8 +346,10 @@ void RotatePoint( double* pX, double* pY, int angle )
{ {
double fangle = DEG2RAD( (double) angle / 10.0 ); double fangle = DEG2RAD( (double) angle / 10.0 );
*pX = (*pY * sin( fangle ) ) + (*pX * cos( fangle ) ); double fpx = (*pY * sin( fangle ) ) + (*pX * cos( fangle ) );
*pY = (*pY * cos( fangle ) ) - (*pX * sin( fangle ) ); double fpy = (*pY * cos( fangle ) ) - (*pX * sin( fangle ) );
*pX = fpx;
*pY = fpy;
} }
} }
......
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