mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-01-08 23:30:21 +01:00
[cairoint.h] Wrap macro in parenthesis
Ensure that the stride calculation macro is not influenced by surrounding precedence issues by enclosing it in a pair of parenthesis.
This commit is contained in:
parent
aa65e756d4
commit
97a00bdd4e
1 changed files with 1 additions and 1 deletions
|
|
@ -2067,7 +2067,7 @@ _cairo_surface_has_device_transform (cairo_surface_t *surface);
|
|||
/* pixman-required stride alignment in bytes. */
|
||||
#define CAIRO_STRIDE_ALIGNMENT (sizeof (uint32_t))
|
||||
#define CAIRO_STRIDE_FOR_WIDTH_BPP(w,bpp) \
|
||||
(((bpp)*(w)+7)/8 + CAIRO_STRIDE_ALIGNMENT-1) & ~(CAIRO_STRIDE_ALIGNMENT-1)
|
||||
((((bpp)*(w)+7)/8 + CAIRO_STRIDE_ALIGNMENT-1) & -CAIRO_STRIDE_ALIGNMENT)
|
||||
|
||||
#define CAIRO_CONTENT_VALID(content) ((content) && \
|
||||
(((content) & ~(CAIRO_CONTENT_COLOR | \
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue