1
0
mirror of https://github.com/emilk/egui.git synced 2026-06-26 22:53:14 -04:00

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

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 {