add back dpi fix

macos-click-through
keith 5 years ago
parent f17477cdcb
commit c9b9b3eee8

@ -255,7 +255,7 @@ impl WindowWrapper {
}
if let Ok(new_dpis) = dpis(&self.window) {
if self.previous_dpis != new_dpis && cfg!(target_os="windows") {
if self.previous_dpis != new_dpis {
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,

Loading…
Cancel
Save