1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-05-09 13:42:09 -05:00
Ben Harris b66ec0c257 GTK/x11font/Cairo: use XDrawString16 instead of XDrawImageString16
On my test case, this reduces Xwayland's CPU usage by 5-10%, though
curiously in glamor_block_handler rather than the drawing routine
itself.

XDrawImageString16 isn't as helpful as it might be for two reasons.
First, "M" type fonts (e.g. Courier Oblique) can extend beyond the
rectangle erased by XDrawImageString16, and PuTTY tries to support such
fonts.  And second, we really want to blank the pixmap after drawing
rather than before, because otherwise we have to muck around clipping
the mask operation.  So avoinding the XFillRectangle calls is difficult,
at which point we may as well use XDrawString16.
2025-05-07 00:02:35 +01:00
..
2022-05-05 19:04:34 +01:00
2023-12-18 14:47:48 +00:00