Fix: images with background color now respects rounding (#4029)

Co-authored-by: Vincent Sparks <vincent@spacestation.blue>
Co-authored-by: Emil Ernerfeldt <emil.ernerfeldt@gmail.com>
This commit is contained in:
vincent-sparks 2024-02-18 04:25:11 -08:00 committed by GitHub
parent ca8c8792c2
commit 68b3ef7f6b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 3 deletions

View File

@ -739,9 +739,7 @@ pub fn paint_texture_at(
texture: &SizedTexture,
) {
if options.bg_fill != Default::default() {
let mut mesh = Mesh::default();
mesh.add_colored_rect(rect, options.bg_fill);
painter.add(Shape::mesh(mesh));
painter.add(RectShape::filled(rect, options.rounding, options.bg_fill));
}
match options.rotation {