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 {
146 }146 }
147 147
148 fn alpha(&self) -> f32 {148 fn alpha(&self) -> f32 {
149- 1.0149+ self.color[3]
150 }150 }
151 151
152 fn kind(&self) -> Kind {152 fn kind(&self) -> Kind {