From 4edaee4fafa76a5ac5daf873167ba0cda8af4bc4 Mon Sep 17 00:00:00 2001 From: Robin Watts Date: Sat, 14 Jan 2012 00:15:07 +0000 Subject: 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. --- fitz/fitz.h | 1 + 1 file changed, 1 insertion(+) (limited to 'fitz/fitz.h') 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 -- cgit v1.2.3