summaryrefslogtreecommitdiff
path: root/fitz/dev_draw.c
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2011-04-05 02:30:25 +0200
committerTor Andersson <tor.andersson@artifex.com>2011-04-05 02:30:25 +0200
commit68f9077504d387a396efd0af6b8ee4147c3451f3 (patch)
tree085d376176b4fffa9ec59db7997a2bae7c62caa1 /fitz/dev_draw.c
parent61226c48df68fba170637f3b5ee654854d01c6ea (diff)
downloadmupdf-68f9077504d387a396efd0af6b8ee4147c3451f3.tar.xz
Add wrapper functions around device calls.
They test for NULL and make the code look nicer.
Diffstat (limited to 'fitz/dev_draw.c')
-rw-r--r--fitz/dev_draw.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/fitz/dev_draw.c b/fitz/dev_draw.c
index e5078f49..05f96f28 100644
--- a/fitz/dev_draw.c
+++ b/fitz/dev_draw.c
@@ -45,7 +45,7 @@ fz_draw_fill_path(void *user, fz_path *path, int even_odd, fz_matrix ctm,
int i;
fz_reset_gel(dev->gel, dev->scissor);
- fz_fill_path(dev->gel, path, ctm, flatness);
+ fz_flatten_fill_path(dev->gel, path, ctm, flatness);
fz_sort_gel(dev->gel);
bbox = fz_bound_gel(dev->gel);
@@ -81,9 +81,9 @@ fz_draw_stroke_path(void *user, fz_path *path, fz_stroke_state *stroke, fz_matri
fz_reset_gel(dev->gel, dev->scissor);
if (stroke->dash_len > 0)
- fz_dash_path(dev->gel, path, stroke, ctm, flatness, linewidth);
+ fz_flatten_dash_path(dev->gel, path, stroke, ctm, flatness, linewidth);
else
- fz_stroke_path(dev->gel, path, stroke, ctm, flatness, linewidth);
+ fz_flatten_stroke_path(dev->gel, path, stroke, ctm, flatness, linewidth);
fz_sort_gel(dev->gel);
bbox = fz_bound_gel(dev->gel);
@@ -117,7 +117,7 @@ fz_draw_clip_path(void *user, fz_path *path, int even_odd, fz_matrix ctm)
}
fz_reset_gel(dev->gel, dev->scissor);
- fz_fill_path(dev->gel, path, ctm, flatness);
+ fz_flatten_fill_path(dev->gel, path, ctm, flatness);
fz_sort_gel(dev->gel);
bbox = fz_bound_gel(dev->gel);
@@ -171,9 +171,9 @@ fz_draw_clip_stroke_path(void *user, fz_path *path, fz_stroke_state *stroke, fz_
fz_reset_gel(dev->gel, dev->scissor);
if (stroke->dash_len > 0)
- fz_dash_path(dev->gel, path, stroke, ctm, flatness, linewidth);
+ fz_flatten_dash_path(dev->gel, path, stroke, ctm, flatness, linewidth);
else
- fz_stroke_path(dev->gel, path, stroke, ctm, flatness, linewidth);
+ fz_flatten_stroke_path(dev->gel, path, stroke, ctm, flatness, linewidth);
fz_sort_gel(dev->gel);
bbox = fz_bound_gel(dev->gel);