From: Keith Packard Date: Wed, 8 Mar 2023 23:49:52 +0000 (-0800) Subject: src/draw: Provide some useful constants X-Git-Tag: 1.9.18~2^2~84 X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=commitdiff_plain;h=5af8252cb6cf51611963f4df97eee04741438ea5 src/draw: Provide some useful constants The two colors and a stride macro Signed-off-by: Keith Packard --- diff --git a/src/draw/ao_draw.h b/src/draw/ao_draw.h index 29afef9c..74d5dc09 100644 --- a/src/draw/ao_draw.h +++ b/src/draw/ao_draw.h @@ -28,6 +28,8 @@ struct ao_bitmap { struct ao_box damage; }; +#define AO_BITMAP_STRIDE(width) (((width) + 31) >> 5) + struct ao_coord { float x, y; }; @@ -209,4 +211,7 @@ extern const struct ao_transform ao_identity; #define AO_NAND 0xe /* NOT src OR NOT dst */ #define AO_SET 0xf /* 1 */ +#define AO_WHITE 0xffffffff +#define AO_BLACK 0x00000000 + #endif /* _AO_DRAW_H_ */