summaryrefslogtreecommitdiff
path: root/src/cairo-ps-surface.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2008-09-07 12:56:14 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2008-09-07 15:03:58 +0100
commit7960fc94dccdf4f4e7362e1cd69eeb3c132939e5 (patch)
treea4f716d233dd8b08671d8b54f83cda7f3e51b1ea /src/cairo-ps-surface.c
parent7439c45039a2c4342f626864324a5b4989a3153d (diff)
[ps] Set used level to 3 only if we use native gradients.
Set the used level after performing the checks that the native Type2/3 gradients support the pattern.
Diffstat (limited to 'src/cairo-ps-surface.c')
-rw-r--r--src/cairo-ps-surface.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cairo-ps-surface.c b/src/cairo-ps-surface.c
index 155d9b3d..9afb6946 100644
--- a/src/cairo-ps-surface.c
+++ b/src/cairo-ps-surface.c
@@ -1456,7 +1456,6 @@ _gradient_pattern_supported (cairo_ps_surface_t *surface,
return FALSE;
}
- surface->ps_level_used = CAIRO_PS_LEVEL_3;
extend = cairo_pattern_get_extend (pattern);
/* Radial gradients are currently only supported when one circle
@@ -1483,6 +1482,8 @@ _gradient_pattern_supported (cairo_ps_surface_t *surface,
}
}
+ surface->ps_level_used = CAIRO_PS_LEVEL_3;
+
return TRUE;
}