From 00479d8bcdf619dab8a3eaa47ff551c6c3a0ac1a Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Thu, 14 Nov 2019 03:00:33 +0100 Subject: Fix text bounds in `iced_wgpu` on nonintegral DPI --- wgpu/src/text.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'wgpu/src/text.rs') 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. -- cgit