mirror of
https://github.com/wez/wezterm.git
synced 2024-12-29 00:21:57 +03:00
use self.(width|height) when synth hidpi changes
This commit is contained in:
parent
c647b4e87c
commit
5f80719306
@ -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)?;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user