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:
parent
ca8c8792c2
commit
68b3ef7f6b
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in New Issue