diff options
author | Robin Watts <robin.watts@artifex.com> | 2012-01-14 00:15:07 +0000 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2012-01-14 00:49:48 +0000 |
commit | 4edaee4fafa76a5ac5daf873167ba0cda8af4bc4 (patch) | |
tree | 1d49cb5a320e9a6634f347727fe240dd0c25949a /fitz/fitz.h | |
parent | e5213366409d28029cfa137f2c19d6ab4a828c4a (diff) | |
download | mupdf-4edaee4fafa76a5ac5daf873167ba0cda8af4bc4.tar.xz |
Smarter path construction (avoid needless segments).
Automatically skip segments in a path that serve no
purpose at construction time.
* MOVE then MOVE -> the original MOVE is ignored.
* LINETO the currentpoint -> ignored if previous segment was
not a moveto.
* CURVETO the currentpoint (with coincident coords) -> ignored
if previous segment was not a moveto.
* CLOSE then CLOSE -> second close ignored.
It's worth noting here that in pdf a closepath leaves the
current point at the point which it closes to - any new
segments will begin a new subpath, but the current point
is defined.
Diffstat (limited to 'fitz/fitz.h')
-rw-r--r-- | fitz/fitz.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fitz/fitz.h b/fitz/fitz.h index 82a16ecf..769111e3 100644 --- a/fitz/fitz.h +++ b/fitz/fitz.h @@ -1130,6 +1130,7 @@ struct fz_path_s { int len, cap; fz_path_item *items; + int last; }; struct fz_stroke_state_s |