simon-git: putty (main): Simon Tatham

Commits to Tartarus hosted VCS tartarus-commits at lists.tartarus.org
Fri Apr 2 19:07:04 BST 2021


TL;DR:
  8c20514b Windows 10: add per monitor DPI awareness support.
  bd5d80b4 Pageant: document deferred decryption.

Repository:     https://git.tartarus.org/simon/putty.git
On the web:     https://git.tartarus.org/?p=simon/putty.git
Branch updated: main
Committer:      Simon Tatham <anakin at pobox.com>
Date:           2021-04-02 19:07:04

commit 8c20514b8de4e4508345081ca481a618dbc614e6
web diff https://git.tartarus.org/?p=simon/putty.git;a=commitdiff;h=8c20514b8de4e4508345081ca481a618dbc614e6;hp=fc9fbfe1e480082a5751f824846c10cf9bd6d6b6
Author: Arthur Liberman <arthur_liberman at hotmail.com>
Date:   Mon Mar 29 18:31:13 2021 +0300

    Windows 10: add per monitor DPI awareness support.
    
    On a system with 2 or more displays with different DPI settings,
    moving the PuTTY window from one display to another will make Windows
    resize the window using its "bitmap" strategy, stretching/compressing
    the text, making it fuzzy and harder to read. This change makes PuTTY
    resize its window and font size to accurately fit the DPI of the
    display it is on.
    
    We process the WM_DPICHANGED message, saving the new DPI, window size
    and position. We proceed to then reset the window, recreating the
    fonts using the new DPI and calculate the new window size and position
    based on the new font size, user display options (ie. with/without
    scrollbar) and the suggested window position provided by Windows. The
    suggested window size is usually not a perfect fit, therefore we must
    add a small offset to the new window position in order to avoid issues
    with repeated DPI changes while dragging the window from one display
    to another.

 windows/putty.mft    |  4 +++
 windows/puttytel.mft |  4 +++
 windows/window.c     | 86 +++++++++++++++++++++++++++++++++++++++++++++++++++-
 3 files changed, 93 insertions(+), 1 deletion(-)

commit bd5d80b4f6221a612f836b20c948163242969203
web diff https://git.tartarus.org/?p=simon/putty.git;a=commitdiff;h=bd5d80b4f6221a612f836b20c948163242969203;hp=8c20514b8de4e4508345081ca481a618dbc614e6
Author: Simon Tatham <anakin at pobox.com>
Date:   Fri Apr 2 17:56:39 2021 +0100

    Pageant: document deferred decryption.

 doc/pageant.but | 36 ++++++++++++++++++++++++++++++++++++
 1 file changed, 36 insertions(+)



More information about the tartarus-commits mailing list