diff options
Diffstat (limited to 'lib/drmtest.c')
-rw-r--r-- | lib/drmtest.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/drmtest.c b/lib/drmtest.c index d035f5e7..abcbba95 100644 --- a/lib/drmtest.c +++ b/lib/drmtest.c @@ -1367,6 +1367,14 @@ void kmstest_paint_color(cairo_t *cr, int x, int y, int w, int h, cairo_fill(cr); } +void kmstest_paint_color_alpha(cairo_t *cr, int x, int y, int w, int h, + double r, double g, double b, double a) +{ + cairo_rectangle(cr, x, y, w, h); + cairo_set_source_rgba(cr, r, g, b, a); + cairo_fill(cr); +} + void kmstest_paint_color_gradient(cairo_t *cr, int x, int y, int w, int h, int r, int g, int b) |