From 5f80719306ef77355d58c4f0efd19a31e29d4ac7 Mon Sep 17 00:00:00 2001 From: Wez Furlong Date: Sun, 24 Feb 2019 07:59:05 -0800 Subject: [PATCH] use self.(width|height) when synth hidpi changes --- src/gliumwindows.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/gliumwindows.rs b/src/gliumwindows.rs index 5bca9aaee..148232c69 100644 --- a/src/gliumwindows.rs +++ b/src/gliumwindows.rs @@ -832,10 +832,11 @@ impl GliumTerminalWindow { if old_dpi_scale != dpi_scale { let (width, height): (u32, u32) = size.to_physical(dpi_scale).into(); eprintln!( - "Synthesize HiDpiFactorChanged {} -> {}", - old_dpi_scale, dpi_scale + "Synthesize HiDpiFactorChanged {} -> {} current {}x{} -> {}x{}", + old_dpi_scale, dpi_scale, self.width, self.height, width, height ); - self.scaling_changed(None, Some(dpi_scale), width as u16, height as u16)?; + eprintln!("Generate scaling_changed with {}x{}", width, height); + self.scaling_changed(None, Some(dpi_scale), self.width, self.height)?; } else { self.resize_surfaces_logical(size)?; }