From ddb1779f9fee28b6393ba6607852a078ed65575f Mon Sep 17 00:00:00 2001 From: emersion Date: Sat, 3 Feb 2018 09:32:02 +0100 Subject: render: make wlr_renderer_clear take a float[4] for the color --- include/wlr/render/interface.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'include/wlr/render') diff --git a/include/wlr/render/interface.h b/include/wlr/render/interface.h index 2531f33c..b8e99898 100644 --- a/include/wlr/render/interface.h +++ b/include/wlr/render/interface.h @@ -18,8 +18,7 @@ struct wlr_renderer { struct wlr_renderer_impl { void (*begin)(struct wlr_renderer *renderer, struct wlr_output *output); void (*end)(struct wlr_renderer *renderer); - void (*clear)(struct wlr_renderer *renderer, float red, float green, - float blue, float alpha); + void (*clear)(struct wlr_renderer *renderer, const float (*color)[4]); void (*scissor)(struct wlr_renderer *renderer, struct wlr_box *box); struct wlr_texture *(*texture_create)(struct wlr_renderer *renderer); bool (*render_with_matrix)(struct wlr_renderer *renderer, -- cgit v1.2.3