1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-26 09:42:25 +00:00

Oops - that do-we-need-to-resize-window check failed to spot font changes

[originally from svn r843]
This commit is contained in:
Simon Tatham 2001-01-07 16:38:35 +00:00
parent 175d849778
commit 1f22416c3c

View File

@ -1171,8 +1171,11 @@ static LRESULT CALLBACK WndProc (HWND hwnd, UINT message,
{ {
int prev_alwaysontop = cfg.alwaysontop; int prev_alwaysontop = cfg.alwaysontop;
int need_setwpos = FALSE; int need_setwpos = FALSE;
int old_fwidth, old_fheight;
cfg.width = cols; cfg.width = cols;
cfg.height = rows; cfg.height = rows;
old_fwidth = font_width;
old_fheight = font_height;
if (!do_reconfig(hwnd)) if (!do_reconfig(hwnd))
break; break;
just_reconfigged = TRUE; just_reconfigged = TRUE;
@ -1250,6 +1253,8 @@ static LRESULT CALLBACK WndProc (HWND hwnd, UINT message,
if (cfg.height != rows || if (cfg.height != rows ||
cfg.width != cols || cfg.width != cols ||
old_fwidth != font_width ||
old_fheight != font_height ||
cfg.savelines != savelines) cfg.savelines != savelines)
need_setwpos = TRUE; need_setwpos = TRUE;
term_size(cfg.height, cfg.width, cfg.savelines); term_size(cfg.height, cfg.width, cfg.savelines);