X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2Fdraw%2Fao_draw.h;h=6b0bc2cefe72e19a0c3246c3b42d390110c2a30d;hb=936ef3907e956b1a42ad54fe5757bd816b20890f;hp=29afef9cb043fa3189c6c410ef4bac4e1ed6c325;hpb=c3414603bb9993e4cf3f0163ae0575758201b041;p=fw%2Faltos diff --git a/src/draw/ao_draw.h b/src/draw/ao_draw.h index 29afef9c..6b0bc2ce 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; }; @@ -158,12 +160,12 @@ ao_poly(struct ao_bitmap *dst, uint32_t fill, uint8_t rop); -void +int16_t ao_text(struct ao_bitmap *dst, const struct ao_font *font, int16_t x, int16_t y, - char *string, + const char *string, uint32_t fill, uint8_t rop); @@ -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_ */