diff options
author | 2023-02-07 18:35:05 +0100 | |
---|---|---|
committer | 2023-02-24 13:37:30 +0100 | |
commit | a970f34cb4968bfe913c1f77b5087f44f29aba8a (patch) | |
tree | 7499093264e79fbd17ac0a0b7b8e2f4ebc88c451 /wgpu/src/text.rs | |
parent | 680ea5dcca37ecf71ab2e5194e907d9414715d22 (diff) | |
download | iced-a970f34cb4968bfe913c1f77b5087f44f29aba8a.tar.gz iced-a970f34cb4968bfe913c1f77b5087f44f29aba8a.tar.bz2 iced-a970f34cb4968bfe913c1f77b5087f44f29aba8a.zip |
Apply `ceil` to text bounds when drawing
Diffstat (limited to 'wgpu/src/text.rs')
-rw-r--r-- | wgpu/src/text.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/wgpu/src/text.rs b/wgpu/src/text.rs index 6e7e60d8..95994a4e 100644 --- a/wgpu/src/text.rs +++ b/wgpu/src/text.rs @@ -105,8 +105,10 @@ impl Pipeline { size: section.size * scale_factor, font: section.font, bounds: Size { - width: section.bounds.width * scale_factor, - height: section.bounds.height * scale_factor, + width: (section.bounds.width * scale_factor) + .ceil(), + height: (section.bounds.height * scale_factor) + .ceil(), }, color: section.color, }, |