summaryrefslogtreecommitdiff
path: root/render/fill.c
diff options
context:
space:
mode:
authorTor Andersson <tor@ghostscript.com>2004-10-13 10:50:39 +0200
committerTor Andersson <tor@ghostscript.com>2004-10-13 10:50:39 +0200
commit5e5ff796c9d1b4c4e4360e6823ec338845d26937 (patch)
treee1e8969c076339a3dcf73e92316ee89736531cf4 /render/fill.c
parent990c5d830eeb4ee2677eecf30fdd6f623bb37c61 (diff)
downloadmupdf-5e5ff796c9d1b4c4e4360e6823ec338845d26937.tar.xz
basic rendering
Diffstat (limited to 'render/fill.c')
-rw-r--r--render/fill.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/render/fill.c b/render/fill.c
index fdb12205..d25f78b1 100644
--- a/render/fill.c
+++ b/render/fill.c
@@ -114,10 +114,19 @@ fz_fillpath(fz_gel *gel, fz_pathnode *path, fz_matrix ctm, float flatness)
error = line(gel, &ctm, cx, cy, bx, by);
if (error)
return error;
+ cx = bx;
+ cy = by;
break;
}
}
+ if (i && (cx != bx || cy != by))
+ {
+ error = line(gel, &ctm, cx, cy, bx, by);
+ if (error)
+ return error;
+ }
+
return nil;
}