[cairo-commit] 3 commits - src/cairo-pdf-operators.c src/cairo-ps-surface.c test/dash-curve-ps-ref.png test/operator-source-ps-argb32-ref.png test/operator-source-ps-rgb24-ref.png
Adrian Johnson
ajohnson at kemper.freedesktop.org
Mon Feb 4 05:55:07 PST 2008
src/cairo-pdf-operators.c | 2 +-
src/cairo-ps-surface.c | 2 +-
test/dash-curve-ps-ref.png |binary
test/operator-source-ps-argb32-ref.png |binary
test/operator-source-ps-rgb24-ref.png |binary
5 files changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 6140776b4e7d5787467606fbe8a961dbee6bd9fb
Author: Adrian Johnson <ajohnson at redneon.com>
Date: Tue Feb 5 00:22:26 2008 +1030
Update operator-source ps ref images
diff --git a/test/operator-source-ps-argb32-ref.png b/test/operator-source-ps-argb32-ref.png
index 1023bd2..0044b74 100644
Binary files a/test/operator-source-ps-argb32-ref.png and b/test/operator-source-ps-argb32-ref.png differ
diff --git a/test/operator-source-ps-rgb24-ref.png b/test/operator-source-ps-rgb24-ref.png
index ed0de08..60451f6 100644
Binary files a/test/operator-source-ps-rgb24-ref.png and b/test/operator-source-ps-rgb24-ref.png differ
commit dee6e27537a26e93266c0a2d2071ad8d4ed2c9ee
Author: Adrian Johnson <ajohnson at redneon.com>
Date: Tue Feb 5 00:12:48 2008 +1030
Add dash-curve ps ref image
diff --git a/test/dash-curve-ps-ref.png b/test/dash-curve-ps-ref.png
new file mode 100644
index 0000000..50f31fb
Binary files /dev/null and b/test/dash-curve-ps-ref.png differ
commit 2b0da0503baba111085a23e5e5e5feb8788d6650
Author: Adrian Johnson <ajohnson at redneon.com>
Date: Tue Feb 5 00:02:17 2008 +1030
Ensure PS/PDF miter is >= 1.0
The PS Language Reference requires the PS miter to be >= 1.
The PDF Reference does not specify miter limits however acroread fails
to display pages when the miter is < 1. Older versions of ghostscript
crash when the PDF miter is < 1.
diff --git a/src/cairo-pdf-operators.c b/src/cairo-pdf-operators.c
index a049d44..ce01334 100644
--- a/src/cairo-pdf-operators.c
+++ b/src/cairo-pdf-operators.c
@@ -278,7 +278,7 @@ _cairo_pdf_operators_emit_stroke_style (cairo_pdf_operators_t *pdf_operators,
_cairo_output_stream_printf (pdf_operators->stream,
"%f M ",
- style->miter_limit);
+ style->miter_limit < 1.0 ? 1.0 : style->miter_limit);
return _cairo_output_stream_get_status (pdf_operators->stream);
}
diff --git a/src/cairo-ps-surface.c b/src/cairo-ps-surface.c
index 3dcca19..23f84d7 100644
--- a/src/cairo-ps-surface.c
+++ b/src/cairo-ps-surface.c
@@ -3256,7 +3256,7 @@ _cairo_ps_surface_stroke (void *abstract_surface,
/* miter limit */
_cairo_output_stream_printf (stream, "%f setmiterlimit\n",
- style->miter_limit);
+ style->miter_limit < 1.0 ? 1.0 : style->miter_limit);
_cairo_output_stream_printf (stream,
"stroke\n");
_cairo_output_stream_printf (stream,
More information about the cairo-commit
mailing list