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

Comparing rxvt-unicode/src/background.C (file contents):
Revision 1.70 by sf-exg, Tue Oct 5 20:22:25 2010 UTC vs.
Revision 1.72 by sf-exg, Sat Oct 9 14:57:50 2010 UTC

616 layers[0].clip_width = target_width; 616 layers[0].clip_width = target_width;
617 layers[0].clip_height = target_height; 617 layers[0].clip_height = target_height;
618 layers[0].tint = background_tint; 618 layers[0].tint = background_tint;
619 layers[1].im = result; 619 layers[1].im = result;
620 620
621 if (w <= 0) 621 if (h_scale == 0 || v_scale == 0)
622 { 622 {
623 /* tile horizontally */ 623 /* tile horizontally */
624 while (x > 0) x -= (int)result->width; 624 while (x > 0) x -= (int)result->width;
625 layers[1].dst_x = x; 625 layers[1].dst_x = x;
626 layers[1].clip_width = result->width+target_width; 626 layers[1].clip_width = result->width+target_width;
630 /* clip horizontally */ 630 /* clip horizontally */
631 layers[1].dst_x = x; 631 layers[1].dst_x = x;
632 layers[1].clip_width = result->width; 632 layers[1].clip_width = result->width;
633 } 633 }
634 634
635 if (h <= 0) 635 if (h_scale == 0 || v_scale == 0)
636 { 636 {
637 while (y > 0) y -= (int)result->height; 637 while (y > 0) y -= (int)result->height;
638 layers[1].dst_y = y; 638 layers[1].dst_y = y;
639 layers[1].clip_height = result->height + target_height; 639 layers[1].clip_height = result->height + target_height;
640 } 640 }
1088 c.g = (c.g * shade) / 100; 1088 c.g = (c.g * shade) / 100;
1089 c.b = (c.b * shade) / 100; 1089 c.b = (c.b * shade) / 100;
1090 } 1090 }
1091 else if (shade > 100 && shade < 200) 1091 else if (shade > 100 && shade < 200)
1092 { 1092 {
1093 c.r = (c.r * (200 - shade)) / 100; 1093 c.r = ((0xffff - c.r) * (200 - shade)) / 100;
1094 c.g = (c.g * (200 - shade)) / 100; 1094 c.g = ((0xffff - c.g) * (200 - shade)) / 100;
1095 c.b = (c.b * (200 - shade)) / 100; 1095 c.b = ((0xffff - c.b) * (200 - shade)) / 100;
1096 } 1096 }
1097 1097
1098 XRenderPictFormat pf; 1098 XRenderPictFormat pf;
1099 pf.type = PictTypeDirect; 1099 pf.type = PictTypeDirect;
1100 pf.depth = 32; 1100 pf.depth = 32;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines