summaryrefslogtreecommitdiff
path: root/src/drm
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2010-05-13 09:52:39 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2010-05-13 09:52:39 +0100
commitdfa2544f158930b002df74e676f3ef7aeeee1bd4 (patch)
tree21d303d65c5fec745a6fcaebc7f349970a202cf4 /src/drm
parent4741d33cf67409a6fddbc32a5d0c8d68224cd939 (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/drm')
-rw-r--r--src/drm/cairo-drm-intel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/drm/cairo-drm-intel.c b/src/drm/cairo-drm-intel.c
index 4d69f8ab..032647c3 100644
--- a/src/drm/cairo-drm-intel.c
+++ b/src/drm/cairo-drm-intel.c
@@ -1421,7 +1421,7 @@ _gradient_color_stops_equal (const cairo_gradient_pattern_t *a,
return FALSE;
}
- if (! _cairo_color_equal (&a->stops[n].color, &b->stops[n].color))
+ if (! _cairo_color_stop_equal (&a->stops[n].color, &b->stops[n].color))
return FALSE;
}