diff options
author | 2025-01-27 01:27:26 +0100 | |
---|---|---|
committer | 2025-01-27 01:27:26 +0100 | |
commit | da1726b134ae084dd76b9e0a1107a771f69ed7c9 (patch) | |
tree | e107cea585febbf265105662b6fc564a23aaf845 /wgpu | |
parent | 3dc601415dc08bea4376cf92ecf7de3a0f0ba5ff (diff) | |
parent | 81f05f00c2f1a72567b057a8ace54860223b1248 (diff) | |
download | iced-da1726b134ae084dd76b9e0a1107a771f69ed7c9.tar.gz iced-da1726b134ae084dd76b9e0a1107a771f69ed7c9.tar.bz2 iced-da1726b134ae084dd76b9e0a1107a771f69ed7c9.zip |
Merge pull request #2749 from rhysd/const-from-rgb8
Make `Color::from_rgb8` and `Color::from_rgba8` const
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 8e099af1..2283cf71 100644 --- a/wgpu/src/lib.rs +++ b/wgpu/src/lib.rs @@ -423,7 +423,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), ); |