1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-07-02 03:52:49 -05:00

`Change Settings' now behaves sensibly w.r.t. window size.

[originally from svn r841]
This commit is contained in:
Simon Tatham
2001-01-07 16:27:48 +00:00
parent fc478e6cad
commit f2b13650c8
3 changed files with 19 additions and 9 deletions

View File

@ -17,7 +17,7 @@ static HWND logbox = NULL, abtbox = NULL;
static int readytogo;
static void force_normal(HWND hwnd)
void force_normal(HWND hwnd)
{
static int recurse = 0;
@ -27,7 +27,7 @@ static void force_normal(HWND hwnd)
recurse = 1;
wp.length = sizeof(wp);
if (GetWindowPlacement(hwnd, &wp))
if (GetWindowPlacement(hwnd, &wp) && wp.showCmd == SW_SHOWMAXIMIZED)
{
wp.showCmd = SW_SHOWNORMAL;
SetWindowPlacement(hwnd, &wp);
@ -1787,8 +1787,6 @@ int do_reconfig (HWND hwnd) {
ret = DialogBox (hinst, MAKEINTRESOURCE(IDD_RECONF), hwnd, ReconfDlgProc);
if (!ret)
cfg = backup_cfg; /* structure copy */
else
force_normal(hwnd);
return ret;
}