From 149efeb672066024e73214ea268a1574163db17b Mon Sep 17 00:00:00 2001 From: Patrick Walton Date: Mon, 24 Feb 2020 21:22:36 -0800 Subject: [PATCH] Fix `is_fully_transparent()` for colors. Oops! --- renderer/src/paint.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/renderer/src/paint.rs b/renderer/src/paint.rs index c5e7a172..c29ea237 100644 --- a/renderer/src/paint.rs +++ b/renderer/src/paint.rs @@ -94,7 +94,7 @@ impl Paint { pub fn is_fully_transparent(&self) -> bool { match *self { - Paint::Color(color) => color.is_opaque(), + Paint::Color(color) => color.is_fully_transparent(), Paint::Gradient(ref gradient) => { gradient.stops().iter().all(|stop| stop.color.is_fully_transparent()) }