summaryrefslogtreecommitdiffstats
path: root/wgpu
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2023-02-07 18:35:05 +0100
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2023-02-24 13:37:30 +0100
commita970f34cb4968bfe913c1f77b5087f44f29aba8a (patch)
tree7499093264e79fbd17ac0a0b7b8e2f4ebc88c451 /wgpu
parent680ea5dcca37ecf71ab2e5194e907d9414715d22 (diff)
downloadiced-a970f34cb4968bfe913c1f77b5087f44f29aba8a.tar.gz
iced-a970f34cb4968bfe913c1f77b5087f44f29aba8a.tar.bz2
iced-a970f34cb4968bfe913c1f77b5087f44f29aba8a.zip
Apply `ceil` to text bounds when drawing
Diffstat (limited to 'wgpu')
-rw-r--r--wgpu/src/text.rs6
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,
},