summaryrefslogtreecommitdiffstats
path: root/wgpu
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2025-01-27 01:09:16 +0100
committerLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2025-01-27 01:09:16 +0100
commitce07acf6fedd705d6380739fbc5da40f95739e04 (patch)
tree183322ddbbe61c0c2dba4cdc4d69e9da0504fae4 /wgpu
parentd9a454ac4d60a259931f13e844680b2fcd18853b (diff)
downloadiced-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.rs2
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),
);