mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-03-16 12:03:03 -05:00
Another fix to yesterday's window-resizing revamp: when restoring from
maximised state, we must be sure to disable the window offset used to centre the terminal in cases where the window is non-negotiably the wrong size (e.g. maximised). Hence we must call reset_window after our terminal resize. [originally from svn r9044]
This commit is contained in:
parent
05f22632eb
commit
674f68f1ef
@ -2771,6 +2771,7 @@ static LRESULT CALLBACK WndProc(HWND hwnd, UINT message,
|
|||||||
h = (height-cfg.window_border*2) / font_height;
|
h = (height-cfg.window_border*2) / font_height;
|
||||||
if (h < 1) h = 1;
|
if (h < 1) h = 1;
|
||||||
term_size(term, h, w, cfg.savelines);
|
term_size(term, h, w, cfg.savelines);
|
||||||
|
reset_window(2);
|
||||||
} else if (cfg.resize_action != RESIZE_FONT)
|
} else if (cfg.resize_action != RESIZE_FONT)
|
||||||
reset_window(2);
|
reset_window(2);
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user