diff options
author | 2024-03-26 13:02:04 +1100 | |
---|---|---|
committer | 2024-03-26 13:02:04 +1100 | |
commit | 39f57a258ee315f51a968a9b4fcfc0ec0ea56ee0 (patch) | |
tree | d4983c464efa916bd0e3b243aa8180e8685801c3 /tiny_skia | |
parent | 8c401be207f013831d0fe1f8fd72f5c00b16346e (diff) | |
download | iced-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.rs | 3 |
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, |