simon-git: putty (main): Ben Harris

Commits to Tartarus hosted VCS tartarus-commits at lists.tartarus.org
Mon Apr 28 09:48:21 BST 2025


TL;DR:
  578ed46f GTK: correct a misuse of WhitePixel and BlackPixel

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 09:48:21

commit 578ed46f34430a5998046a1137ef5c1db15da8ac
web diff https://git.tartarus.org/?p=simon/putty.git;a=commitdiff;h=578ed46f34430a5998046a1137ef5c1db15da8ac;hp=c71cc50e52aca439185c09ada7788c3f226d17a4
Author: Ben Harris <bjh21 at bjh21.me.uk>
Date:   Thu Apr 24 22:13:07 2025 +0100

    GTK: correct a misuse of WhitePixel and BlackPixel
    
    According to the X specs, WhitePixel and BlackPixel refer to permanent
    entries in the default colourmap.  This means that they're not
    necessarily appropriate for use with a Drawable with a different depth
    than the root window.  When drawing to a Pixmap that will be used as a
    1-bit alpha mask by Cairo, the correct values are simply 0
    (transparent) and 1 (opaque).

 unix/unifont.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)



More information about the tartarus-commits mailing list