diff options
Diffstat (limited to 'test/utils.h')
-rw-r--r-- | test/utils.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/utils.h b/test/utils.h index 3bff78e..fbbd30b 100644 --- a/test/utils.h +++ b/test/utils.h @@ -151,3 +151,12 @@ aligned_malloc (size_t align, size_t size); void initialize_palette (pixman_indexed_t *palette, uint32_t depth, int is_rgb); + +typedef struct +{ + double r, g, b, a; +} color_t; + +void +color_correct (pixman_format_code_t format, + color_t *color); |