]> asedeno.scripts.mit.edu Git - PuTTY.git/commitdiff
Another fix to yesterday's window-resizing revamp: when restoring from
authorSimon Tatham <anakin@pobox.com>
Thu, 23 Dec 2010 15:44:20 +0000 (15:44 +0000)
committerSimon Tatham <anakin@pobox.com>
Thu, 23 Dec 2010 15:44:20 +0000 (15:44 +0000)
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]

windows/window.c

index d73c04bc8a3cdf0d70ca73d62a51341ee914b5f0..cd583bf050e472d6be4098c0331f227fd1c4f90a 100644 (file)
@@ -2771,6 +2771,7 @@ static LRESULT CALLBACK WndProc(HWND hwnd, UINT message,
                     h = (height-cfg.window_border*2) / font_height;
                     if (h < 1) h = 1;
                     term_size(term, h, w, cfg.savelines);
+                    reset_window(2);
                 } else if (cfg.resize_action != RESIZE_FONT)
                     reset_window(2);
                 else