0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-06 14:50:20 -05:00

🐛 Tweak sampling options for rendering shapes

This commit is contained in:
Belén Albeza 2024-11-15 15:13:57 +01:00
parent 42211c4ed6
commit 6f11eebbed

View file

@ -146,7 +146,7 @@ impl RenderState {
self.drawing_surface.draw(
&mut self.final_surface.canvas(),
(0.0, 0.0),
skia::SamplingOptions::new(skia::FilterMode::Linear, skia::MipmapMode::None),
skia::SamplingOptions::new(skia::FilterMode::Linear, skia::MipmapMode::Nearest),
Some(&paint),
);
self.drawing_surface