summaryrefslogtreecommitdiffstats
path: root/wgpu/src/text.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2019-11-14 03:00:33 +0100
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2019-11-14 03:00:57 +0100
commit00479d8bcdf619dab8a3eaa47ff551c6c3a0ac1a (patch)
tree467f700ebc630d1f27baf620eb6f6e8306351d7e /wgpu/src/text.rs
parentbe5466a0a7ee6a16b5c07e61c9a22068ad8e127f (diff)
downloadiced-00479d8bcdf619dab8a3eaa47ff551c6c3a0ac1a.tar.gz
iced-00479d8bcdf619dab8a3eaa47ff551c6c3a0ac1a.tar.bz2
iced-00479d8bcdf619dab8a3eaa47ff551c6c3a0ac1a.zip
Fix text bounds in `iced_wgpu` on nonintegral DPI
Diffstat (limited to 'wgpu/src/text.rs')
-rw-r--r--wgpu/src/text.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/wgpu/src/text.rs b/wgpu/src/text.rs
index 3205fe55..81fc1fb5 100644
--- a/wgpu/src/text.rs
+++ b/wgpu/src/text.rs
@@ -91,7 +91,7 @@ impl Pipeline {
// TODO: This is a bit hacky. We are loading the debug font as the
// first font in the `draw_brush`. The `measure_brush` does not
- // contain this font.
+ // contain this font, hence we subtract 1.
//
// This should go away once we improve the debug view and integrate
// it as just another UI app.