diff options
author | emersion <contact@emersion.fr> | 2018-02-03 09:32:02 +0100 |
---|---|---|
committer | emersion <contact@emersion.fr> | 2018-02-03 09:32:02 +0100 |
commit | ddb1779f9fee28b6393ba6607852a078ed65575f (patch) | |
tree | 2a5265428c4a2af20e4a32c7cf6e830927a04ca7 /rootston | |
parent | 402587ed65016fa89b9fcafc8d7af27b1958dd20 (diff) |
render: make wlr_renderer_clear take a float[4] for the color
Diffstat (limited to 'rootston')
-rw-r--r-- | rootston/output.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/rootston/output.c b/rootston/output.c index 96e466a7..7c520d86 100644 --- a/rootston/output.c +++ b/rootston/output.c @@ -361,7 +361,7 @@ static void render_output(struct roots_output *output) { struct timespec now; clock_gettime(CLOCK_MONOTONIC, &now); - float clear_color[] = {0.25f, 0.25f, 0.25f}; + float clear_color[] = {0.25f, 0.25f, 0.25f, 1.0f}; // Check if we can delegate the fullscreen surface to the output if (output->fullscreen_view != NULL) { @@ -438,8 +438,7 @@ static void render_output(struct roots_output *output) { pixman_box32_t *rects = pixman_region32_rectangles(&damage, &nrects); for (int i = 0; i < nrects; ++i) { scissor_output(output, &rects[i]); - wlr_renderer_clear(renderer, clear_color[0], clear_color[1], - clear_color[2], 1); + wlr_renderer_clear(renderer, &clear_color); } // If a view is fullscreen on this output, render it |