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.60 by sf-exg, Sun Oct 3 20:41:32 2010 UTC vs.
Revision 1.61 by sf-exg, Sun Oct 3 20:48:34 2010 UTC

138# endif 138# endif
139 139
140# ifdef BG_IMAGE_FROM_FILE 140# ifdef BG_IMAGE_FROM_FILE
141 if (have_image) 141 if (have_image)
142 { 142 {
143 if (h_scale != 0 || v_scale != 0 143 if (flags & sizeSensitive)
144 || h_align != 0 || v_align != 0)
145 return true; 144 return true;
146 } 145 }
147# endif 146# endif
148 147
149 return false; 148 return false;
472 if (h_align != rootAlign) 471 if (h_align != rootAlign)
473 x = make_align_position (h_align, target_width, w > 0 ? w : image_width); 472 x = make_align_position (h_align, target_width, w > 0 ? w : image_width);
474 473
475 if (v_align != rootAlign) 474 if (v_align != rootAlign)
476 y = make_align_position (v_align, target_height, h > 0 ? h : image_height); 475 y = make_align_position (v_align, target_height, h > 0 ? h : image_height);
476
477 flags &= ~sizeSensitive;
478 if (h_scale != 0 || v_scale != 0
479 || h_align != 0 || v_align != 0
480 || image_width > target_width || image_height > target_height)
481 flags |= sizeSensitive;
477} 482}
478 483
479# ifdef HAVE_AFTERIMAGE 484# ifdef HAVE_AFTERIMAGE
480bool 485bool
481bgPixmap_t::render_image (unsigned long background_flags) 486bgPixmap_t::render_image (unsigned long background_flags)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines