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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user