1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-10 18:07:59 +00:00

Update the configuration when the window is resized.

[originally from svn r5233]
This commit is contained in:
Owen Dunn 2005-02-02 19:56:29 +00:00
parent ea225b5889
commit 00c57c6bc5

View File

@ -985,6 +985,8 @@ static void mac_growterm(WindowPtr window, EventRecord *event)
newcols = (LoWord(grow_result) - 15) / s->font_width; newcols = (LoWord(grow_result) - 15) / s->font_width;
mac_adjustsize(s, newrows, newcols); mac_adjustsize(s, newrows, newcols);
term_size(s->term, newrows, newcols, s->cfg.savelines); term_size(s->term, newrows, newcols, s->cfg.savelines);
s->cfg.height=s->term->rows;
s->cfg.width=s->term->cols;
} }
} }