mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-05-10 14:12:10 -05:00

During startup, calculate the top/left position of the window so that the whole window is visible. Without this change, sometimes the window is clipped vertically and you can't see the bottom. Thanks to Bruno Kraychete da Costa for the original version of this patch; I've tweaked it slightly, but the basic strategy of adjusting the output of GetWindowRect against the monitor's working area is all his.