src/draw: Provide some useful constants
[fw/altos] / src / draw / ao_draw.h
index 29afef9cb043fa3189c6c410ef4bac4e1ed6c325..74d5dc09e654fc53a525d038a95244d23ecfb495 100644 (file)
@@ -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_ */