diff options
author | emersion <contact@emersion.fr> | 2018-05-20 13:44:18 +0100 |
---|---|---|
committer | emersion <contact@emersion.fr> | 2018-05-20 13:44:18 +0100 |
commit | e849a68e6e9252c5998ee053df288379f8a2ce68 (patch) | |
tree | 96d7dc427252fde5c1a6c43e3bd6c90146b5c1ba | |
parent | 8585533a78413bd2dd98ca91c17781ace750cca3 (diff) |
output: correctly clear screen when fullscreened
-rw-r--r-- | rootston/output.c | 2 | ||||
-rw-r--r-- | types/wlr_output.c | 7 |
2 files changed, 5 insertions, 4 deletions
diff --git a/rootston/output.c b/rootston/output.c index e07cd935..faa808d1 100644 --- a/rootston/output.c +++ b/rootston/output.c @@ -458,7 +458,7 @@ static void render_output(struct roots_output *output) { } if (server->config->debug_damage_tracking) { - wlr_renderer_clear(renderer, (float[]){1, 1, 0, 0}); + wlr_renderer_clear(renderer, (float[]){1, 1, 0, 1}); } int nrects; diff --git a/types/wlr_output.c b/types/wlr_output.c index a0f27e51..a5a6d0eb 100644 --- a/types/wlr_output.c +++ b/types/wlr_output.c @@ -368,7 +368,7 @@ static void output_fullscreen_surface_render(struct wlr_output *output, assert(renderer); if (!wlr_surface_has_buffer(surface)) { - wlr_renderer_clear(renderer, (float[]){0, 0, 0, 0}); + wlr_renderer_clear(renderer, (float[]){0, 0, 0, 1}); return; } @@ -385,8 +385,9 @@ static void output_fullscreen_surface_render(struct wlr_output *output, pixman_box32_t *rects = pixman_region32_rectangles(damage, &nrects); for (int i = 0; i < nrects; ++i) { output_scissor(output, &rects[i]); - wlr_renderer_clear(renderer, (float[]){0, 0, 0, 0}); - wlr_render_texture_with_matrix(surface->renderer, surface->texture, matrix, 1.0f); + wlr_renderer_clear(renderer, (float[]){0, 0, 0, 1}); + wlr_render_texture_with_matrix(surface->renderer, surface->texture, + matrix, 1.0f); } wlr_renderer_scissor(renderer, NULL); |