ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/rxvtimg.C
(Generate patch)

Comparing rxvt-unicode/src/rxvtimg.C (file contents):
Revision 1.112 by root, Tue Sep 17 18:31:32 2019 UTC vs.
Revision 1.113 by sf-exg, Sat May 8 06:15:32 2021 UTC

689 Picture dst = XRenderCreatePicture (dpy, pm, format, 0, 0); 689 Picture dst = XRenderCreatePicture (dpy, pm, format, 0, 0);
690 690
691 // loop should not be needed for brightness, as only -1..1 makes sense 691 // loop should not be needed for brightness, as only -1..1 makes sense
692 //while (r | g | b | a) 692 //while (r | g | b | a)
693 { 693 {
694 unsigned short xr, xg, xb, xa;
695 XRenderColor mask_c; 694 XRenderColor mask_c;
696 695
697 if (extract (0, 65535, r, g, b, a, mask_c.red, mask_c.green, mask_c.blue, mask_c.alpha)) 696 if (extract (0, 65535, r, g, b, a, mask_c.red, mask_c.green, mask_c.blue, mask_c.alpha))
698 XRenderFillRectangle (dpy, PictOpAdd, dst, &mask_c, 0, 0, w, h); 697 XRenderFillRectangle (dpy, PictOpAdd, dst, &mask_c, 0, 0, w, h);
699 698
731 cc.mask (true); 730 cc.mask (true);
732 731
733 //TODO: this operator does not yet implement some useful contrast 732 //TODO: this operator does not yet implement some useful contrast
734 while (r | g | b | a) 733 while (r | g | b | a)
735 { 734 {
736 unsigned short xr, xg, xb, xa;
737 XRenderColor mask_c; 735 XRenderColor mask_c;
738 736
739 if (extract (0, 65535, r, g, b, a, mask_c.red, mask_c.green, mask_c.blue, mask_c.alpha)) 737 if (extract (0, 65535, r, g, b, a, mask_c.red, mask_c.green, mask_c.blue, mask_c.alpha))
740 { 738 {
741 XRenderFillRectangle (cc.dpy, PictOpSrc, cc.msk, &mask_c, 0, 0, 1, 1); 739 XRenderFillRectangle (cc.dpy, PictOpSrc, cc.msk, &mask_c, 0, 0, 1, 1);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines