From cbc3272bf34cfa54e7e5ba52eb65b875967c7a6c Mon Sep 17 00:00:00 2001 From: simon Date: Sun, 7 Jan 2001 16:38:35 +0000 Subject: [PATCH] Oops - that do-we-need-to-resize-window check failed to spot font changes git-svn-id: svn://svn.tartarus.org/sgt/putty@843 cda61777-01e9-0310-a592-d414129be87e --- window.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/window.c b/window.c index 8c2d96c9..5dab8df4 100644 --- a/window.c +++ b/window.c @@ -1171,8 +1171,11 @@ static LRESULT CALLBACK WndProc (HWND hwnd, UINT message, { int prev_alwaysontop = cfg.alwaysontop; int need_setwpos = FALSE; + int old_fwidth, old_fheight; cfg.width = cols; cfg.height = rows; + old_fwidth = font_width; + old_fheight = font_height; if (!do_reconfig(hwnd)) break; just_reconfigged = TRUE; @@ -1250,6 +1253,8 @@ static LRESULT CALLBACK WndProc (HWND hwnd, UINT message, if (cfg.height != rows || cfg.width != cols || + old_fwidth != font_width || + old_fheight != font_height || cfg.savelines != savelines) need_setwpos = TRUE; term_size(cfg.height, cfg.width, cfg.savelines); -- 2.11.0