[cairo-commit] src/cairo-pdf-surface.c
Adrian Johnson
ajohnson at kemper.freedesktop.org
Sat Aug 4 08:38:53 PDT 2007
src/cairo-pdf-surface.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
New commits:
diff-tree 72c1f5d802c32f97ae5c0cbf899dc3a12fc28222 (from 9bcedd3d6f0de8c380e7ab4981d32377e3c5a778)
Author: Adrian Johnson <ajohnson at redneon.com>
Date: Sun Aug 5 00:50:23 2007 +0930
PDF: Fix gradients regression
diff --git a/src/cairo-pdf-surface.c b/src/cairo-pdf-surface.c
index a1a1b66..36cfed1 100644
--- a/src/cairo-pdf-surface.c
+++ b/src/cairo-pdf-surface.c
@@ -1270,10 +1270,10 @@ _cairo_pdf_surface_emit_pattern_stops (c
n_stops = pattern->n_stops;
for (i = 0; i < n_stops; i++) {
- stops[i].color[0] = pattern->stops[i].color.red / 65535.0;
- stops[i].color[1] = pattern->stops[i].color.green / 65535.0;
- stops[i].color[2] = pattern->stops[i].color.blue / 65535.0;
- stops[i].color[3] = pattern->stops[i].color.alpha / 65535.0;
+ stops[i].color[0] = pattern->stops[i].color.red;
+ stops[i].color[1] = pattern->stops[i].color.green;
+ stops[i].color[2] = pattern->stops[i].color.blue;
+ stops[i].color[3] = pattern->stops[i].color.alpha;
if (!CAIRO_ALPHA_IS_OPAQUE (stops[i].color[3]))
emit_alpha = TRUE;
stops[i].offset = _cairo_fixed_to_double (pattern->stops[i].x);
More information about the cairo-commit
mailing list