summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--wgpu/src/renderer.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/wgpu/src/renderer.rs b/wgpu/src/renderer.rs
index c8e1e10d..a7628bf4 100644
--- a/wgpu/src/renderer.rs
+++ b/wgpu/src/renderer.rs
@@ -365,8 +365,8 @@ impl Renderer {
// Target physical coordinates directly to avoid blurry text
let text = Section {
screen_position: (
- text.screen_position.0 * dpi,
- text.screen_position.1 * dpi,
+ (text.screen_position.0 * dpi).round(),
+ (text.screen_position.1 * dpi).round(),
),
bounds: (text.bounds.0 * dpi, text.bounds.1 * dpi),
scale: wgpu_glyph::Scale {