summaryrefslogtreecommitdiffstats
path: root/wgpu/src/renderer.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón <hector0193@gmail.com>2019-11-07 17:44:27 +0100
committerLibravatar GitHub <noreply@github.com>2019-11-07 17:44:27 +0100
commit59ef7f074c67126dd8bd0ae9cbc82ce2a946258f (patch)
tree5004ae812a39d36b3880d340101806edcf6abd04 /wgpu/src/renderer.rs
parent6790f4b6e36f21b5db9ef02f5e499df8336abfea (diff)
parente7bd24c13eb0c5c2b8ecf3f09f9e2de315bf8a41 (diff)
downloadiced-59ef7f074c67126dd8bd0ae9cbc82ce2a946258f.tar.gz
iced-59ef7f074c67126dd8bd0ae9cbc82ce2a946258f.tar.bz2
iced-59ef7f074c67126dd8bd0ae9cbc82ce2a946258f.zip
Merge pull request #46 from memoryruins/from-array
impl From<Array> for Color
Diffstat (limited to 'wgpu/src/renderer.rs')
-rw-r--r--wgpu/src/renderer.rs7
1 files changed, 1 insertions, 6 deletions
diff --git a/wgpu/src/renderer.rs b/wgpu/src/renderer.rs
index c8e1e10d..799cb30c 100644
--- a/wgpu/src/renderer.rs
+++ b/wgpu/src/renderer.rs
@@ -444,12 +444,7 @@ fn explain_layout(
// TODO: Draw borders instead
primitives.push(Primitive::Quad {
bounds: layout.bounds(),
- background: Background::Color(Color {
- r: 0.0,
- g: 0.0,
- b: 0.0,
- a: 0.05,
- }),
+ background: Background::Color([0.0, 0.0, 0.0, 0.05].into()),
border_radius: 0,
});