mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-18 11:31:00 -05:00

If you go to Change Settings in Unix PuTTY or pterm, and change the 'Gap between text and window edge' setting but not the width and height, then change_settings_menuitem() correctly sets the physical window to a new size, but drawing_area_setup() was not recreating the backing surface / pixmap in the same way, because it hadn't spotted that the border size might be relevant. Now I unconditionally work out what the exact size of the backing surface _ought_ to be, before reaching the potential early exit path, and never take the early exit if the backing area needs resizing for any reason at all. (I think this probably ought to have been part of commit 528513dde.)