From 56cc29d47ccbff7cf823a738b3f7f4a31e8af26d Mon Sep 17 00:00:00 2001 From: keith Date: Fri, 6 Mar 2020 21:37:13 -0800 Subject: [PATCH] update skulpin --- Cargo.lock | 4 ++-- src/window.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index ae34964..0f7a6aa 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2054,9 +2054,9 @@ checksum = "cccddf32554fecc6acb585f82a32a72e28b48f8c4c1883ddfeeeaa96f7d8e519" [[package]] name = "which" -version = "3.1.0" +version = "3.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5475d47078209a02e60614f7ba5e645ef3ed60f771920ac1906d7c1cc65024c8" +checksum = "d011071ae14a2f6671d0b74080ae0cd8ebf3a6f8c9589a2cd45f23126fe29724" dependencies = [ "libc", ] diff --git a/src/window.rs b/src/window.rs index aeaea76..8b53823 100644 --- a/src/window.rs +++ b/src/window.rs @@ -233,7 +233,7 @@ impl WindowWrapper { } if let Ok(new_dpis) = dpis(&self.window) { - if self.previous_dpis != new_dpis { + if self.previous_dpis != new_dpis && cfg!(target_os="windows") { let physical_size = PhysicalSize::new(&self.window); self.window.set_size( (physical_size.width as f32 * new_dpis.0 / self.previous_dpis.0) as u32,