mirror of
https://github.com/lihop/godot-xterm.git
synced 2024-11-21 17:20:25 +01:00
fix(pty): emit size_changed if forcing size update
Ensures that connected PTY is resized correctly on scene start.
This commit is contained in:
parent
5c151c3244
commit
a5951978f7
1 changed files with 1 additions and 1 deletions
|
@ -451,7 +451,7 @@ void Terminal::update_sizes(bool force)
|
|||
update_shader_parameters(back_material);
|
||||
update_shader_parameters(fore_material);
|
||||
|
||||
if (prev_cols != cols || prev_rows != rows)
|
||||
if (force || prev_cols != cols || prev_rows != rows)
|
||||
emit_signal("size_changed", Vector2i(cols, rows));
|
||||
|
||||
refresh();
|
||||
|
|
Loading…
Reference in a new issue