summaryrefslogtreecommitdiffstats
path: root/tiny_skia
diff options
context:
space:
mode:
authorLibravatar Daniel Yoon <101683475+Koranir@users.noreply.github.com>2024-03-26 13:02:04 +1100
committerLibravatar Daniel Yoon <101683475+Koranir@users.noreply.github.com>2024-03-26 13:02:04 +1100
commit39f57a258ee315f51a968a9b4fcfc0ec0ea56ee0 (patch)
treed4983c464efa916bd0e3b243aa8180e8685801c3 /tiny_skia
parent8c401be207f013831d0fe1f8fd72f5c00b16346e (diff)
downloadiced-39f57a258ee315f51a968a9b4fcfc0ec0ea56ee0.tar.gz
iced-39f57a258ee315f51a968a9b4fcfc0ec0ea56ee0.tar.bz2
iced-39f57a258ee315f51a968a9b4fcfc0ec0ea56ee0.zip
Make tiny-skia equivalent
Diffstat (limited to 'tiny_skia')
-rw-r--r--tiny_skia/src/backend.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/tiny_skia/src/backend.rs b/tiny_skia/src/backend.rs
index 8c8781e3..0c913c02 100644
--- a/tiny_skia/src/backend.rs
+++ b/tiny_skia/src/backend.rs
@@ -233,7 +233,8 @@ impl Backend {
),
size,
&radii,
- );
+ )
+ .max(0.0);
let shadow_alpha = 1.0
- smoothstep(
-shadow.blur_radius * scale_factor,