X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/putty/blobdiff_plain/fb783cafce5c9d686ab6dda1ea20198fbe2618b6..c13772b1ab493bfc92760c9c45c6aa5c58074ab1:/mac/macterm.c diff --git a/mac/macterm.c b/mac/macterm.c index a80b113a..f4b8f4df 100644 --- a/mac/macterm.c +++ b/mac/macterm.c @@ -305,18 +305,6 @@ static pascal OSStatus uni_to_font_fallback(UniChar *ucp, } /* - * Called every time round the event loop. - */ -void mac_pollterm(void) -{ - Session *s; - - for (s = sesslist; s != NULL; s = s->next) { - term_update(s->term); - } -} - -/* * To be called whenever the window size changes. * rows and cols should be desired values. * It's assumed the terminal emulator will be informed, and will set rows @@ -985,6 +973,8 @@ static void mac_growterm(WindowPtr window, EventRecord *event) newcols = (LoWord(grow_result) - 15) / s->font_width; mac_adjustsize(s, newrows, newcols); term_size(s->term, newrows, newcols, s->cfg.savelines); + s->cfg.height=s->term->rows; + s->cfg.width=s->term->cols; } }