diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2010-05-13 09:52:39 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2010-05-13 09:52:39 +0100 |
commit | dfa2544f158930b002df74e676f3ef7aeeee1bd4 (patch) | |
tree | 21d303d65c5fec745a6fcaebc7f349970a202cf4 /src/cairo-gstate.c | |
parent | 4741d33cf67409a6fddbc32a5d0c8d68224cd939 (diff) |
color: Special case comparing color stops.
color stops are not premultiplied so we need to handle them carefully
when comparing. The next step will be to make cairo_color_stop_t a
unique type to prevent this mistake again.
Diffstat (limited to 'src/cairo-gstate.c')
-rw-r--r-- | src/cairo-gstate.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cairo-gstate.c b/src/cairo-gstate.c index 78aab508..c3f63db1 100644 --- a/src/cairo-gstate.c +++ b/src/cairo-gstate.c @@ -887,8 +887,8 @@ _cairo_gstate_copy_pattern (cairo_pattern_t *pattern, * Happens more often than you would believe. */ for (i = 1; i < src->n_stops; i++) { - if (! _cairo_color_equal (&src->stops[0].color, - &src->stops[i].color)) + if (! _cairo_color_stop_equal (&src->stops[0].color, + &src->stops[i].color)) { break; } |