summaryrefslogtreecommitdiff
path: root/src/cairo-pattern.c
diff options
context:
space:
mode:
authorCarl Worth <cworth@cworth.org>2005-02-21 08:17:42 +0000
committerCarl Worth <cworth@cworth.org>2005-02-21 08:17:42 +0000
commitc8a98b109a5f7b02455aaf717066757a13652eb8 (patch)
tree82d33aa71e19fdf7e9f572dedfe3d1ab1a4ed894 /src/cairo-pattern.c
parent81fd7e53e3e053f8f3fdc9a528cce9e01c4e5c68 (diff)
Fix y offset to use dst_y instead of dst_x, (caught by David Reveman).
Diffstat (limited to 'src/cairo-pattern.c')
-rw-r--r--src/cairo-pattern.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/cairo-pattern.c b/src/cairo-pattern.c
index b2a1ab81b..b4927afcf 100644
--- a/src/cairo-pattern.c
+++ b/src/cairo-pattern.c
@@ -172,13 +172,15 @@ cairo_pattern_create_radial (double cx0, double cy0, double radius0,
return pattern;
}
-void
+cairo_pattern_t *
cairo_pattern_reference (cairo_pattern_t *pattern)
{
if (pattern == NULL)
- return;
+ return NULL;
pattern->ref_count++;
+
+ return pattern;
}
void