mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-01 22:58:38 -04:00
Add alpha to wlr_render_with_matrix
so we can use the alpha channel to e.g. blend in textures
This commit is contained in:
parent
e6ca78b0e4
commit
d08792bfff
11 changed files with 18 additions and 17 deletions
|
|
@ -391,7 +391,7 @@ static void output_fullscreen_surface_render(struct wlr_output *output,
|
|||
for (int i = 0; i < nrects; ++i) {
|
||||
output_scissor(output, &rects[i]);
|
||||
wlr_renderer_clear(renderer, &(float[]){0, 0, 0, 0});
|
||||
wlr_render_with_matrix(surface->renderer, surface->texture, &matrix);
|
||||
wlr_render_with_matrix(surface->renderer, surface->texture, &matrix, 1.0f);
|
||||
}
|
||||
wlr_renderer_scissor(renderer, NULL);
|
||||
|
||||
|
|
@ -448,7 +448,7 @@ static void output_cursor_render(struct wlr_output_cursor *cursor,
|
|||
pixman_box32_t *rects = pixman_region32_rectangles(&surface_damage, &nrects);
|
||||
for (int i = 0; i < nrects; ++i) {
|
||||
output_scissor(cursor->output, &rects[i]);
|
||||
wlr_render_with_matrix(renderer, texture, &matrix);
|
||||
wlr_render_with_matrix(renderer, texture, &matrix, 1.0f);
|
||||
}
|
||||
wlr_renderer_scissor(renderer, NULL);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue