mirror of
https://github.com/emilk/egui.git
synced 2026-08-31 05:40:03 -04:00
Fix incorrect color fringe colors on SVG:s (#7069)
This is a problem that affected the fringes on all SVG:s with transparency, especially on a light background. ## Before  ## After 
This commit is contained in:
@@ -295,7 +295,7 @@ pub fn load_svg_bytes_with_size(
|
||||
&mut pixmap.as_mut(),
|
||||
);
|
||||
|
||||
let image = egui::ColorImage::from_rgba_unmultiplied([w as _, h as _], pixmap.data());
|
||||
let image = egui::ColorImage::from_rgba_premultiplied([w as _, h as _], pixmap.data());
|
||||
|
||||
Ok(image)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user