mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-31 22:25:21 -04:00
render: add simple functions to render rectangles and ellipses
This commit is contained in:
parent
bcb74c2c78
commit
793c3b3047
6 changed files with 61 additions and 30 deletions
|
|
@ -363,7 +363,7 @@ static void render_decorations(struct roots_view *view,
|
|||
pixman_region32_rectangles(&damage, &nrects);
|
||||
for (int i = 0; i < nrects; ++i) {
|
||||
scissor_output(output, &rects[i]);
|
||||
wlr_render_colored_quad(renderer, color, matrix);
|
||||
wlr_render_quad_with_matrix(renderer, color, matrix);
|
||||
}
|
||||
|
||||
damage_finish:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue