mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-07 10:58:15 +02:00
Fix macro to not consider CAIRO_FORMAT_ARGB32 (==0) as a valid cairo_content_t.
This commit is contained in:
parent
88cf98fe33
commit
689fdfb6ea
2 changed files with 12 additions and 3 deletions
|
|
@ -1,3 +1,10 @@
|
||||||
|
2005-07-20 Carl Worth <cworth@cworth.org>
|
||||||
|
|
||||||
|
reviewed by: keithp
|
||||||
|
|
||||||
|
* src/cairo.h (CAIRO_CONTENT_VALID): Fix macro to not consider
|
||||||
|
CAIRO_FORMAT_ARGB32 (==0) as a valid cairo_content_t.
|
||||||
|
|
||||||
2005-07-20 Keith Packard <keithp@keithp.com>
|
2005-07-20 Keith Packard <keithp@keithp.com>
|
||||||
|
|
||||||
reviewed by: otaylor
|
reviewed by: otaylor
|
||||||
|
|
|
||||||
|
|
@ -907,9 +907,11 @@ typedef enum _cairo_content {
|
||||||
CAIRO_CONTENT_COLOR_ALPHA = 0x3000
|
CAIRO_CONTENT_COLOR_ALPHA = 0x3000
|
||||||
} cairo_content_t;
|
} cairo_content_t;
|
||||||
|
|
||||||
#define CAIRO_CONTENT_VALID(content) (((content) & ~(CAIRO_CONTENT_COLOR | \
|
#define CAIRO_CONTENT_VALID(content) ((content) && \
|
||||||
CAIRO_CONTENT_ALPHA | \
|
(((content) & ~(CAIRO_CONTENT_COLOR | \
|
||||||
CAIRO_CONTENT_COLOR_ALPHA)) == 0)
|
CAIRO_CONTENT_ALPHA | \
|
||||||
|
CAIRO_CONTENT_COLOR_ALPHA))\
|
||||||
|
== 0))
|
||||||
|
|
||||||
cairo_surface_t *
|
cairo_surface_t *
|
||||||
cairo_surface_create_similar (cairo_surface_t *other,
|
cairo_surface_create_similar (cairo_surface_t *other,
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue