Don't forget to initialise the pixel size parameters of the window
[u/mdw/putty] / unix / pty.c
index a3d2fc7..0d7b7fe 100644 (file)
@@ -402,6 +402,8 @@ static void pty_size(void)
 
     size.ws_row = (unsigned short)rows;
     size.ws_col = (unsigned short)cols;
+    size.ws_xpixel = (unsigned short) cols * font_dimension(0);
+    size.ws_ypixel = (unsigned short) rows * font_dimension(1);
     ioctl(pty_master_fd, TIOCSWINSZ, (void *)&size);
     return;
 }