From 5af8252cb6cf51611963f4df97eee04741438ea5 Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Wed, 8 Mar 2023 15:49:52 -0800 Subject: [PATCH] src/draw: Provide some useful constants The two colors and a stride macro Signed-off-by: Keith Packard --- src/draw/ao_draw.h | 5 +++++ 1 file changed, 5 insertions(+) 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_ */ -- 2.30.2