diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2008-10-20 20:59:14 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2008-10-20 23:20:24 +0100 |
commit | 98933fd4b8579b68623a8212015769b058db43f5 (patch) | |
tree | fe1a342a45862e19558167bd408cc0d50923f9e3 /src/cairo-color.c | |
parent | 4af8aa5f4d31141a6a4ba914cc860aff5d342d5b (diff) | |
download | cairo-98933fd4b8579b68623a8212015769b058db43f5.tar.gz |
[directfb] When blitting check if we need the un-premultiplied color.
When blitting whether we need to use the premultiplied color is dependent
upon the destination surface capabilities.
Diffstat (limited to 'src/cairo-color.c')
-rw-r--r-- | src/cairo-color.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cairo-color.c b/src/cairo-color.c index 50a9a1c26..7640bf436 100644 --- a/src/cairo-color.c +++ b/src/cairo-color.c @@ -165,6 +165,9 @@ cairo_bool_t _cairo_color_equal (const cairo_color_t *color_a, const cairo_color_t *color_b) { + if (color_a == color_b) + return TRUE; + return color_a->red_short == color_b->red_short && color_a->green_short == color_b->green_short && color_a->blue_short == color_b->blue_short && |