Rename `Settings::antialiasing` to `use_antialiasing`
This commit is contained in:
parent
fe61d2fd67
commit
570f769744
|
@ -287,7 +287,7 @@ use iced::{
|
||||||
|
|
||||||
pub fn main() {
|
pub fn main() {
|
||||||
Example::run(Settings {
|
Example::run(Settings {
|
||||||
antialiasing: true,
|
use_antialiasing: true,
|
||||||
..Settings::default()
|
..Settings::default()
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,7 +5,7 @@ use iced::{
|
||||||
|
|
||||||
pub fn main() {
|
pub fn main() {
|
||||||
Clock::run(Settings {
|
Clock::run(Settings {
|
||||||
antialiasing: true,
|
use_antialiasing: true,
|
||||||
..Settings::default()
|
..Settings::default()
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
|
@ -15,7 +15,7 @@ use std::time::Instant;
|
||||||
|
|
||||||
pub fn main() {
|
pub fn main() {
|
||||||
SolarSystem::run(Settings {
|
SolarSystem::run(Settings {
|
||||||
antialiasing: true,
|
use_antialiasing: true,
|
||||||
..Settings::default()
|
..Settings::default()
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
|
@ -178,7 +178,7 @@ pub trait Application: Sized {
|
||||||
_settings.into(),
|
_settings.into(),
|
||||||
iced_wgpu::Settings {
|
iced_wgpu::Settings {
|
||||||
default_font: _settings.default_font,
|
default_font: _settings.default_font,
|
||||||
antialiasing: if _settings.antialiasing {
|
antialiasing: if _settings.use_antialiasing {
|
||||||
Some(iced_wgpu::settings::MSAA::X4)
|
Some(iced_wgpu::settings::MSAA::X4)
|
||||||
} else {
|
} else {
|
||||||
None
|
None
|
||||||
|
|
|
@ -24,7 +24,7 @@ pub struct Settings {
|
||||||
/// `Canvas`, at a performance cost.
|
/// `Canvas`, at a performance cost.
|
||||||
///
|
///
|
||||||
/// By default, it is disabled.
|
/// By default, it is disabled.
|
||||||
pub antialiasing: bool,
|
pub use_antialiasing: bool,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(not(target_arch = "wasm32"))]
|
#[cfg(not(target_arch = "wasm32"))]
|
||||||
|
|
Loading…
Reference in New Issue