From afd5f92195335a88d7c1ff181a1bd03ca01b424f Mon Sep 17 00:00:00 2001 From: Jeff Muizelaar Date: Mon, 19 Feb 2007 16:06:57 -0500 Subject: Fix several issues with dashed stroking code, particularly 'leaky-dash' Adds some state, 'dash_starts_on', to keep track of whether a dashed path starts with dash_on or not. This fixes the 'leaky-dash' bug (#4863) and some other degenerate cases. The new version is, in my opinion, considerably cleaner and more understandable than the old code. Finally, the rewrite changes the behaviour of dashing to add degenerate caps around corners that start at the same place as a dash begins. This matches the behaviour seen in acroread. This rewrite is based on an initial rewrite done by Jeff Smith. --- test/dash-caps-joins-ref.png | Bin 4680 -> 4718 bytes 1 file changed, 0 insertions(+), 0 deletions(-) (limited to 'test/dash-caps-joins-ref.png') diff --git a/test/dash-caps-joins-ref.png b/test/dash-caps-joins-ref.png index ec1f2f7d..15a06798 100644 Binary files a/test/dash-caps-joins-ref.png and b/test/dash-caps-joins-ref.png differ -- cgit v1.2.3