From bfeca4e72439ab15bedba381459b8542d67f58b9 Mon Sep 17 00:00:00 2001 From: Wez Furlong Date: Mon, 25 Feb 2019 07:59:32 -0800 Subject: [PATCH] skip hidpi synthesis on macos, as it breaks manual window resizing(!) --- src/gliumwindows.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/gliumwindows.rs b/src/gliumwindows.rs index 26ae6d3f1..f54118977 100644 --- a/src/gliumwindows.rs +++ b/src/gliumwindows.rs @@ -670,7 +670,9 @@ impl GliumTerminalWindow { // think we know, otherwise we will use the wrong font size. let old_dpi_scale = self.fonts.get_dpi_scale(); let dpi_scale = self.host.display.gl_window().get_hidpi_factor(); - if (old_dpi_scale - dpi_scale).abs() < std::f64::EPSILON { + if cfg!(all(unix, not(target_os = "macos"))) + && (old_dpi_scale - dpi_scale).abs() < std::f64::EPSILON + { let (width, height): (u32, u32) = size.to_physical(dpi_scale).into(); eprintln!( "Synthesize HiDpiFactorChanged {} -> {} current {}x{} -> {}x{}",