mirror of
https://github.com/emilk/egui.git
synced 2026-08-31 05:40:03 -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,
|
texture: &SizedTexture,
|
||||||
) {
|
) {
|
||||||
if options.bg_fill != Default::default() {
|
if options.bg_fill != Default::default() {
|
||||||
let mut mesh = Mesh::default();
|
painter.add(RectShape::filled(rect, options.rounding, options.bg_fill));
|
||||||
mesh.add_colored_rect(rect, options.bg_fill);
|
|
||||||
painter.add(Shape::mesh(mesh));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
match options.rotation {
|
match options.rotation {
|
||||||
|
|||||||
Reference in New Issue
Block a user