diff options
author | 2025-01-27 01:09:16 +0100 | |
---|---|---|
committer | 2025-01-27 01:09:16 +0100 | |
commit | ce07acf6fedd705d6380739fbc5da40f95739e04 (patch) | |
tree | 183322ddbbe61c0c2dba4cdc4d69e9da0504fae4 /wgpu | |
parent | d9a454ac4d60a259931f13e844680b2fcd18853b (diff) | |
download | iced-ce07acf6fedd705d6380739fbc5da40f95739e04.tar.gz iced-ce07acf6fedd705d6380739fbc5da40f95739e04.tar.bz2 iced-ce07acf6fedd705d6380739fbc5da40f95739e04.zip |
Make all `Color` constructors `const` :tada:
Diffstat (limited to 'wgpu')
-rw-r--r-- | wgpu/src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/wgpu/src/lib.rs b/wgpu/src/lib.rs index d79f0dc8..63667ada 100644 --- a/wgpu/src/lib.rs +++ b/wgpu/src/lib.rs @@ -414,7 +414,7 @@ impl Renderer { renderer.fill_text( text.clone(), Point::new(11.0, 11.0 + 25.0 * i as f32), - Color::new(0.9, 0.9, 0.9, 1.0), + Color::from_rgba(0.9, 0.9, 0.9, 1.0), Rectangle::with_size(Size::INFINITY), ); |