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.46 by sf-exg, Mon Aug 30 23:08:06 2010 UTC vs.
Revision 1.47 by sf-exg, Mon Aug 30 23:42:37 2010 UTC

480 } 480 }
481 481
482 if (!(background_flags & transpPmapBlured) && (flags & blurNeeded) && background != NULL) 482 if (!(background_flags & transpPmapBlured) && (flags & blurNeeded) && background != NULL)
483 { 483 {
484 ASImage *tmp = blur_asimage_gauss (target->asv, background, h_blurRadius, v_blurRadius, 0xFFFFFFFF, 484 ASImage *tmp = blur_asimage_gauss (target->asv, background, h_blurRadius, v_blurRadius, 0xFFFFFFFF,
485 (original_asim == NULL || tint == TINT_LEAVE_SAME)?ASA_XImage:ASA_ASImage, 485 (original_asim == NULL || tint == TINT_LEAVE_SAME) ? ASA_XImage : ASA_ASImage,
486 100, ASIMAGE_QUALITY_DEFAULT); 486 100, ASIMAGE_QUALITY_DEFAULT);
487 if (tmp) 487 if (tmp)
488 { 488 {
489 destroy_asimage (&background); 489 destroy_asimage (&background);
490 background = tmp; 490 background = tmp;
508 508
509 if (original_asim) 509 if (original_asim)
510 { 510 {
511 if (h_align == rootAlign || v_align == rootAlign) 511 if (h_align == rootAlign || v_align == rootAlign)
512 { 512 {
513 target->get_window_origin(x, y); 513 target->get_window_origin (x, y);
514 x = -x; 514 x = -x;
515 y = -y; 515 y = -y;
516 } 516 }
517 517
518 if (h_align != rootAlign) 518 if (h_align != rootAlign)
670 pixmap = XCreatePixmap (target->dpy, target->vt, new_pmap_width, new_pmap_height, target->depth); 670 pixmap = XCreatePixmap (target->dpy, target->vt, new_pmap_width, new_pmap_height, target->depth);
671 pmap_width = new_pmap_width; 671 pmap_width = new_pmap_width;
672 pmap_height = new_pmap_height; 672 pmap_height = new_pmap_height;
673 pmap_depth = target->depth; 673 pmap_depth = target->depth;
674 } 674 }
675 /* fill with background color ( if result's not completely overlapping it)*/ 675 /* fill with background color (if result's not completely overlapping it) */
676 gcv.foreground = target->pix_colors[Color_bg]; 676 gcv.foreground = target->pix_colors[Color_bg];
677 gc = XCreateGC (target->dpy, target->vt, GCForeground, &gcv); 677 gc = XCreateGC (target->dpy, target->vt, GCForeground, &gcv);
678 678
679 int src_x = 0, src_y = 0, dst_x = 0, dst_y = 0; 679 int src_x = 0, src_y = 0, dst_x = 0, dst_y = 0;
680 int dst_width = result->width, dst_height = result->height; 680 int dst_width = result->width, dst_height = result->height;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines