Add Anti-Aliased Corner Radius (#18)

This commit is contained in:
William McKinnon 2022-08-29 18:25:11 -04:00 committed by GitHub
parent 3b287a73b9
commit c1f4cf17db
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 76 additions and 189 deletions

View file

@ -122,9 +122,9 @@ static void render_texture(struct wlr_output *wlr_output,
scissor_output(wlr_output, &rects[i]);
set_scale_filter(wlr_output, texture, output->scale_filter);
if (src_box != NULL) {
fx_render_subtexture_with_matrix(renderer, texture, src_box, matrix, alpha, corner_radius);
fx_render_subtexture_with_matrix(renderer, texture, src_box, dst_box, matrix, alpha, corner_radius);
} else {
fx_render_texture_with_matrix(renderer, texture, matrix, alpha, corner_radius);
fx_render_texture_with_matrix(renderer, texture, dst_box, matrix, alpha, corner_radius);
}
}