1
0
Fork 0

Enable anti-aliasing by default

This commit is contained in:
Robbert van der Helm 2022-03-13 13:56:17 +01:00
parent 1e40ac3e24
commit 55e9153811

View file

@ -96,7 +96,12 @@ pub trait IcedEditor: 'static + Send + Sync + Sized {
/// See [`Application::renderer_settings`].
fn renderer_settings() -> iced_baseview::renderer::settings::Settings {
iced_baseview::renderer::settings::Settings::default()
iced_baseview::renderer::settings::Settings {
// Enable some anti-aliasing by default. Since GUIs are likely very simple and most of
// the work will be on the CPU anyways this should not affect performance much.
antialiasing: Some(iced_baseview::renderer::Antialiasing::MSAAx4),
..iced_baseview::renderer::settings::Settings::default()
}
}
/// Handle a parameter update using the GUI context.