Update the configuration when the window is resized.
authorowen <owen@cda61777-01e9-0310-a592-d414129be87e>
Wed, 2 Feb 2005 19:56:29 +0000 (19:56 +0000)
committerowen <owen@cda61777-01e9-0310-a592-d414129be87e>
Wed, 2 Feb 2005 19:56:29 +0000 (19:56 +0000)
git-svn-id: svn://svn.tartarus.org/sgt/putty@5233 cda61777-01e9-0310-a592-d414129be87e

mac/macterm.c

index a80b113..28898e6 100644 (file)
@@ -985,6 +985,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;
     }
 }