1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-05-09 21:52:10 -05:00

4 Commits

Author SHA1 Message Date
Ben Harris
1ebca75a89 GTK: make inst->pixmap and inst->surface mutually exclusive
This removes the case where we draw into a Cairo surface and then copy
the results into a GdkPixmap.  Now, if we've got a GdkPixmap, we just
draw into it directly using Cairo.  This vastly reduces the number of
CopyArea operations needed to draw on the screen.
2025-04-28 23:24:48 +01:00
Ben Harris
01043ce4fc 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.
2025-04-28 23:10:29 +01:00
Simon Tatham
5935c68288 Update source file names in comments and docs.
Correcting a source file name in the docs just now reminded me that
I've seen a lot of outdated source file names elsewhere in the code,
due to all the reorganisation since we moved to cmake. Here's a giant
pass of trying to make them all accurate again.
2022-01-22 15:51:31 +00:00
Simon Tatham
f39c51f9a7 Rename most of the platform source files.
This gets rid of all those annoying 'win', 'ux' and 'gtk' prefixes
which made filenames annoying to type and to tab-complete. Also, as
with my other recent renaming sprees, I've taken the opportunity to
expand and clarify some of the names so that they're not such cryptic
abbreviations.
2021-04-26 18:00:01 +01:00