diff options
author | Robin Watts <robin.watts@artifex.com> | 2017-04-13 09:53:51 +0100 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2017-04-13 13:38:59 +0100 |
commit | 87e828aea737b2e18b9941d5d7888cd4c673627e (patch) | |
tree | aec2cff384bda97a2e698470c5a2c2ed203174ba /source/fitz/draw-device.c | |
parent | e479ec17d2d90218af773011b719b75c05107c79 (diff) | |
download | mupdf-87e828aea737b2e18b9941d5d7888cd4c673627e.tar.xz |
Scan converter; simplify API.
In all cases, we sort the gel before scan converting it. So
just roll the sort call into the scan convert call.
Diffstat (limited to 'source/fitz/draw-device.c')
-rw-r--r-- | source/fitz/draw-device.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/source/fitz/draw-device.c b/source/fitz/draw-device.c index 25323b15..dba64d3f 100644 --- a/source/fitz/draw-device.c +++ b/source/fitz/draw-device.c @@ -297,7 +297,6 @@ fz_draw_fill_path(fz_context *ctx, fz_device *devp, const fz_path *path, int eve fz_reset_gel(ctx, gel, &state->scissor); fz_flatten_fill_path(ctx, gel, path, &ctm, flatness); - fz_sort_gel(ctx, gel); fz_intersect_irect(fz_bound_gel(ctx, gel, &bbox), &state->scissor); @@ -323,7 +322,6 @@ fz_draw_fill_path(fz_context *ctx, fz_device *devp, const fz_path *path, int eve { fz_reset_gel(ctx, gel, &state->scissor); fz_flatten_fill_path(ctx, gel, path, &ctm, flatness); - fz_sort_gel(ctx, gel); colorbv[0] = alpha * 255; fz_scan_convert(ctx, gel, even_odd, &bbox, state->shape, colorbv); @@ -368,7 +366,6 @@ fz_draw_stroke_path(fz_context *ctx, fz_device *devp, const fz_path *path, const fz_flatten_dash_path(ctx, gel, path, stroke, &ctm, flatness, linewidth); else fz_flatten_stroke_path(ctx, gel, path, stroke, &ctm, flatness, linewidth); - fz_sort_gel(ctx, gel); fz_intersect_irect(fz_bound_gel(ctx, gel, &bbox), &state->scissor); @@ -404,7 +401,6 @@ fz_draw_stroke_path(fz_context *ctx, fz_device *devp, const fz_path *path, const fz_flatten_dash_path(ctx, gel, path, stroke, &ctm, flatness, linewidth); else fz_flatten_stroke_path(ctx, gel, path, stroke, &ctm, flatness, linewidth); - fz_sort_gel(ctx, gel); colorbv[0] = 255; fz_scan_convert(ctx, gel, 0, &bbox, state->shape, colorbv); @@ -439,7 +435,6 @@ fz_draw_clip_path(fz_context *ctx, fz_device *devp, const fz_path *path, int eve fz_reset_gel(ctx, gel, &state->scissor); fz_flatten_fill_path(ctx, gel, path, &ctm, flatness); - fz_sort_gel(ctx, gel); state = push_stack(ctx, dev); STACK_PUSHED("clip path"); @@ -518,7 +513,6 @@ fz_draw_clip_stroke_path(fz_context *ctx, fz_device *devp, const fz_path *path, fz_flatten_dash_path(ctx, gel, path, stroke, &ctm, flatness, linewidth); else fz_flatten_stroke_path(ctx, gel, path, stroke, &ctm, flatness, linewidth); - fz_sort_gel(ctx, gel); state = push_stack(ctx, dev); STACK_PUSHED("clip stroke"); |