summaryrefslogtreecommitdiff
path: root/src/cairo-color.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cairo-color.c')
-rw-r--r--src/cairo-color.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/cairo-color.c b/src/cairo-color.c
index ad6316e1..257f8d26 100644
--- a/src/cairo-color.c
+++ b/src/cairo-color.c
@@ -160,3 +160,10 @@ _cairo_color_get_rgba_premultiplied (cairo_color_t *color,
*blue = color->blue * color->alpha;
*alpha = color->alpha;
}
+
+cairo_bool_t
+_cairo_color_equal (const cairo_color_t *color_a,
+ const cairo_color_t *color_b)
+{
+ return memcmp (color_a, color_b, sizeof (cairo_color_t)) == 0;
+}