bugfix: cannot draw 180 degree arc in OpenGL canvas

This commit is contained in:
Eldar Khayrullin 2015-03-09 10:26:29 +01:00 committed by Maciej Suminski
parent c9b9ccd2b6
commit 5d8f7ba0e6
1 changed files with 1 additions and 1 deletions

View File

@ -368,7 +368,7 @@ void OPENGL_GAL::DrawArc( const VECTOR2D& aCenterPoint, double aRadius, double a
VECTOR2D p( cos( aStartAngle ) * aRadius, sin( aStartAngle ) * aRadius );
double alpha;
for( alpha = aStartAngle + alphaIncrement; alpha < aEndAngle; alpha += alphaIncrement )
for( alpha = aStartAngle + alphaIncrement; alpha <= aEndAngle; alpha += alphaIncrement )
{
VECTOR2D p_next( cos( alpha ) * aRadius, sin( alpha ) * aRadius );
DrawLine( p, p_next );