Fix step factor calc in draw_bez()

This commit is contained in:
hasufell 2014-06-07 22:44:16 +02:00
parent ae45cf8627
commit c895e3970f
No known key found for this signature in database
GPG Key ID: 220CD1C5BDEED020
1 changed files with 2 additions and 2 deletions

View File

@ -182,8 +182,8 @@ void draw_bez(const bez_curv *bez, float step_factor_inc)
static float point_size = 10;
static float step_factor = 0.1;
if (step_factor + step_factor_inc > 0.002 &
step_factor + step_factor_inc < 0.50)
if ((step_factor + step_factor_inc) > 0.002 &&
(step_factor + step_factor_inc) < 0.50)
step_factor += step_factor_inc;
glPushMatrix();