request_resize() needs to call term_size() to tell the terminal emulator
authorben <ben@cda61777-01e9-0310-a592-d414129be87e>
Tue, 14 Jan 2003 15:24:51 +0000 (15:24 +0000)
committerben <ben@cda61777-01e9-0310-a592-d414129be87e>
Tue, 14 Jan 2003 15:24:51 +0000 (15:24 +0000)
that its resize request has been approved.

git-svn-id: svn://svn.tartarus.org/sgt/putty@2591 cda61777-01e9-0310-a592-d414129be87e

mac/macterm.c

index 1f14b42..cdabbad 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: macterm.c,v 1.45 2003/01/12 16:25:58 ben Exp $ */
+/* $Id: macterm.c,v 1.46 2003/01/14 15:24:51 ben Exp $ */
 /*
  * Copyright (c) 1999 Simon Tatham
  * Copyright (c) 1999, 2002 Ben Harris
@@ -1256,8 +1256,7 @@ void set_raw_mouse_mode(void *frontend, int activate)
 void request_resize(void *frontend, int w, int h) {
     Session *s = frontend;
 
-    s->term->cols = w;
-    s->term->rows = h;
+    term_size(s->term, h, w, s->cfg.savelines);
     mac_initfont(s);
 }