st-selectionbg-alpha-0.8.2.diff - sites - public wiki contents of suckless.org
 (HTM) git clone git://git.suckless.org/sites
 (DIR) Log
 (DIR) Files
 (DIR) Refs
       ---
       st-selectionbg-alpha-0.8.2.diff (848B)
       ---
            1 --- x.c        2020-05-07 16:51:55.080437829 +0200
            2 +++ x.c        2020-05-07 16:51:23.850218201 +0200
            3 @@ -812,6 +812,17 @@
            4                  ((unsigned short)(dc.col[defaultbg].color.blue * alpha)) & 0xff00;
            5          dc.col[defaultbg].pixel &= 0x00FFFFFF;
            6          dc.col[defaultbg].pixel |= (unsigned char)(0xff * alpha) << 24;
            7 +
            8 +        /* set alpha value of selbg color */
            9 +        dc.col[selectionbg].color.alpha = (unsigned short)(0xffff * alpha);
           10 +        dc.col[selectionbg].color.red =
           11 +                ((unsigned short)(dc.col[selectionbg].color.red * alpha)) & 0xff00;
           12 +        dc.col[selectionbg].color.green =
           13 +                ((unsigned short)(dc.col[selectionbg].color.green * alpha)) & 0xff00;
           14 +        dc.col[selectionbg].color.blue =
           15 +                ((unsigned short)(dc.col[selectionbg].color.blue * alpha)) & 0xff00;
           16 +        dc.col[selectionbg].pixel &= 0x00FFFFFF;
           17 +        dc.col[selectionbg].pixel |= (unsigned char)(0xff * alpha) << 24;
           18          loaded = 1;
           19  }
           20