Update pty size when font size changed
This commit is contained in:
parent
6716c81c08
commit
a47d716daa
|
@ -338,6 +338,9 @@ impl Display {
|
||||||
pty_resize_handle: &mut dyn OnResize,
|
pty_resize_handle: &mut dyn OnResize,
|
||||||
processor_resize_handle: &mut dyn OnResize,
|
processor_resize_handle: &mut dyn OnResize,
|
||||||
) {
|
) {
|
||||||
|
let previous_cols = self.size_info.cols();
|
||||||
|
let previous_lines = self.size_info.lines();
|
||||||
|
|
||||||
// Resize events new_size and are handled outside the poll_events
|
// Resize events new_size and are handled outside the poll_events
|
||||||
// iterator. This has the effect of coalescing multiple resize
|
// iterator. This has the effect of coalescing multiple resize
|
||||||
// events into one.
|
// events into one.
|
||||||
|
@ -388,8 +391,6 @@ impl Display {
|
||||||
let height = psize.height as f32;
|
let height = psize.height as f32;
|
||||||
let cell_width = self.size_info.cell_width;
|
let cell_width = self.size_info.cell_width;
|
||||||
let cell_height = self.size_info.cell_height;
|
let cell_height = self.size_info.cell_height;
|
||||||
let previous_cols = self.size_info.cols();
|
|
||||||
let previous_lines = self.size_info.lines();
|
|
||||||
|
|
||||||
self.size_info.width = width;
|
self.size_info.width = width;
|
||||||
self.size_info.height = height;
|
self.size_info.height = height;
|
||||||
|
|
Loading…
Reference in New Issue