From 570f769744aabce2d9d9618feadb47e4b92f50ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A9ctor=20Ram=C3=B3n=20Jim=C3=A9nez?= Date: Sat, 15 Feb 2020 10:50:07 +0100 Subject: [PATCH] Rename `Settings::antialiasing` to `use_antialiasing` --- examples/bezier_tool/src/main.rs | 2 +- examples/clock/src/main.rs | 2 +- examples/solar_system/src/main.rs | 2 +- src/application.rs | 2 +- src/settings.rs | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/examples/bezier_tool/src/main.rs b/examples/bezier_tool/src/main.rs index 023eb0f7..01f8f847 100644 --- a/examples/bezier_tool/src/main.rs +++ b/examples/bezier_tool/src/main.rs @@ -287,7 +287,7 @@ use iced::{ pub fn main() { Example::run(Settings { - antialiasing: true, + use_antialiasing: true, ..Settings::default() }); } diff --git a/examples/clock/src/main.rs b/examples/clock/src/main.rs index f7fb6f2d..d0995e0c 100644 --- a/examples/clock/src/main.rs +++ b/examples/clock/src/main.rs @@ -5,7 +5,7 @@ use iced::{ pub fn main() { Clock::run(Settings { - antialiasing: true, + use_antialiasing: true, ..Settings::default() }) } diff --git a/examples/solar_system/src/main.rs b/examples/solar_system/src/main.rs index 9e7dba2f..3cabedbb 100644 --- a/examples/solar_system/src/main.rs +++ b/examples/solar_system/src/main.rs @@ -15,7 +15,7 @@ use std::time::Instant; pub fn main() { SolarSystem::run(Settings { - antialiasing: true, + use_antialiasing: true, ..Settings::default() }) } diff --git a/src/application.rs b/src/application.rs index 1b73101a..8a88b55a 100644 --- a/src/application.rs +++ b/src/application.rs @@ -178,7 +178,7 @@ pub trait Application: Sized { _settings.into(), iced_wgpu::Settings { default_font: _settings.default_font, - antialiasing: if _settings.antialiasing { + antialiasing: if _settings.use_antialiasing { Some(iced_wgpu::settings::MSAA::X4) } else { None diff --git a/src/settings.rs b/src/settings.rs index f70e577f..757dc72f 100644 --- a/src/settings.rs +++ b/src/settings.rs @@ -24,7 +24,7 @@ pub struct Settings { /// `Canvas`, at a performance cost. /// /// By default, it is disabled. - pub antialiasing: bool, + pub use_antialiasing: bool, } #[cfg(not(target_arch = "wasm32"))]