simon-git: putty (main): Ben Harris
Commits to Tartarus hosted VCS
tartarus-commits at lists.tartarus.org
Mon Apr 28 23:27:16 BST 2025
TL;DR:
01043ce4 GTK: simpler text scaling under Cairo
Repository: https://git.tartarus.org/simon/putty.git
On the web: https://git.tartarus.org/?p=simon/putty.git
Branch updated: main
Committer: Ben Harris <bjh21 at bjh21.me.uk>
Date: 2025-04-28 23:27:16
commit 01043ce4fc90cee578a00872a64fd69e4bb7203a
web diff https://git.tartarus.org/?p=simon/putty.git;a=commitdiff;h=01043ce4fc90cee578a00872a64fd69e4bb7203a;hp=578ed46f34430a5998046a1137ef5c1db15da8ac
Author: Ben Harris <bjh21 at bjh21.me.uk>
Date: Sat Apr 26 14:26:02 2025 +0100
GTK: simpler text scaling under Cairo
Rather than constructing a transformation matrix piece by piece (with
very branchy code), draw_stretch_before now just calls cairo_translate()
and cairo_scale() with values that are almost-obviously correct.
Also, rather than stashing and restoring the transformation matrix
ourselves, it seems simpler to use cairo_save() and cairo_restore().
That requires that draw_stretch_before() and draw_stretch_after() be
called strictly in pairs, but they are so that's OK.
unix/unifont.h | 1 -
unix/window.c | 37 ++++++-------------------------------
2 files changed, 6 insertions(+), 32 deletions(-)
More information about the tartarus-commits
mailing list