summaryrefslogtreecommitdiff
path: root/src/lib/ector/software/ector_renderer_software_shape.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/ector/software/ector_renderer_software_shape.c')
-rw-r--r--src/lib/ector/software/ector_renderer_software_shape.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/ector/software/ector_renderer_software_shape.c b/src/lib/ector/software/ector_renderer_software_shape.c
index be024ff5d1..658a82e41f 100644
--- a/src/lib/ector/software/ector_renderer_software_shape.c
+++ b/src/lib/ector/software/ector_renderer_software_shape.c
@@ -271,7 +271,7 @@ typedef struct _Line
271 double y2; 271 double y2;
272}Line; 272}Line;
273 273
274static void 274static void
275_line_value_set(Line *l, double x1, double y1, double x2, double y2) 275_line_value_set(Line *l, double x1, double y1, double x2, double y2)
276{ 276{
277 l->x1 = x1; 277 l->x1 = x1;
@@ -281,7 +281,7 @@ _line_value_set(Line *l, double x1, double y1, double x2, double y2)
281} 281}
282 282
283// approximate sqrt(x*x + y*y) using alpha max plus beta min algorithm. 283// approximate sqrt(x*x + y*y) using alpha max plus beta min algorithm.
284// With alpha = 1, beta = 3/8, giving results with the largest error less 284// With alpha = 1, beta = 3/8, giving results with the largest error less
285// than 7% compared to the exact value. 285// than 7% compared to the exact value.
286static double 286static double
287_line_length(Line *l) 287_line_length(Line *l)
@@ -339,7 +339,7 @@ _dasher_line_to(Dash_Stroker *dasher, double x, double y)
339 _outline_line_to(dasher->outline, x, y); 339 _outline_line_to(dasher->outline, x, y);
340 } 340 }
341 } 341 }
342 else 342 else
343 { 343 {
344 while (line_len > dasher->cur_dash_length) 344 while (line_len > dasher->cur_dash_length)
345 { 345 {
@@ -404,7 +404,7 @@ _dasher_cubic_to(Dash_Stroker *dasher, double cx1 , double cy1, double cx2, doub
404 _outline_cubic_to(dasher->outline, cx1, cy1, cx2, cy2, x, y); 404 _outline_cubic_to(dasher->outline, cx1, cy1, cx2, cy2, x, y);
405 } 405 }
406 } 406 }
407 else 407 else
408 { 408 {
409 while (bez_len > dasher->cur_dash_length) 409 while (bez_len > dasher->cur_dash_length)
410 { 410 {