forge
Explore
Log in

Don't you dare go Hollow

solid_color: Fix alpha handling

Browse files at this commit

092cf6cfaf9c03303bd04e44df4374b79f550f21Ivan MolodetskikhParent: 236f96e
It wasn't getting redrawn on alpha changes.
src/render_helpers/solid_color.rsmodified+1 -1
@@ -146,7 +146,7 @@ impl Element for SolidColorRenderElement {
146146 }
147147
148148 fn alpha(&self) -> f32 {
149- 1.0
149+ self.color[3]
150150 }
151151
152152 fn kind(&self) -> Kind {