X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/4e05e1040407ccd21a296950216caf2cf1a31e0d..47779c35ea83c34cf95ae6849cfec3c53325a814:/windows/window.c diff --git a/windows/window.c b/windows/window.c index cd583bf0..12b6fe71 100644 --- a/windows/window.c +++ b/windows/window.c @@ -2627,7 +2627,8 @@ static LRESULT CALLBACK WndProc(HWND hwnd, UINT message, * 1) Keep the sizetip uptodate * 2) Make sure the window size is _stepped_ in units of the font size. */ - if (cfg.resize_action != RESIZE_FONT && !is_alt_pressed()) { + if (cfg.resize_action == RESIZE_TERM || + (cfg.resize_action == RESIZE_EITHER && !is_alt_pressed())) { int width, height, w, h, ew, eh; LPRECT r = (LPRECT) lParam; @@ -2778,7 +2779,9 @@ static LRESULT CALLBACK WndProc(HWND hwnd, UINT message, reset_window(0); } else if (wParam == SIZE_MINIMIZED) { /* do nothing */ - } else if (cfg.resize_action != RESIZE_FONT && !is_alt_pressed()) { + } else if (cfg.resize_action == RESIZE_TERM || + (cfg.resize_action == RESIZE_EITHER && + !is_alt_pressed())) { w = (width-cfg.window_border*2) / font_width; if (w < 1) w = 1; h = (height-cfg.window_border*2) / font_height;