diff options
Diffstat (limited to 'rtgrpblib_draw_linear_bezier.c')
-rw-r--r-- | rtgrpblib_draw_linear_bezier.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/rtgrpblib_draw_linear_bezier.c b/rtgrpblib_draw_linear_bezier.c index 5c83591..ba8dc48 100644 --- a/rtgrpblib_draw_linear_bezier.c +++ b/rtgrpblib_draw_linear_bezier.c @@ -9,6 +9,11 @@ rtgrpblib_draw_linear_bezier(RASTER *restrict raster, double x1, double y1, doub double w, h, dx, dy, x, y; int xdir, ydir; + if (raster->draftness <= 0) { + draw_linear_bezier_reference(raster, x1, y1, x2, y2); + return; + } + dx = x2 - x1; dy = y2 - y1; xdir = SIGNUM(dx); |