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.36 by root, Thu Jun 7 08:45:34 2012 UTC vs.
Revision 1.37 by root, Thu Jun 7 09:25:23 2012 UTC

416} 416}
417 417
418rxvt_img * 418rxvt_img *
419rxvt_img::sub_rect (int x, int y, int width, int height) 419rxvt_img::sub_rect (int x, int y, int width, int height)
420{ 420{
421 bool need_reify = w < width || h < height;
422
423 rxvt_img *img = clone (); 421 rxvt_img *img = clone ();
424 422
425 img->x += x; 423 img->x += x;
426 img->y += y; 424 img->y += y;
425
426 if (w != width || h != height)
427 {
427 img->w = width; 428 img->w = width;
428 img->h = height; 429 img->h = height;
429 430
430 if (need_reify)
431 img->reify (); 431 img->reify ();
432 }
432 433
433 return img; 434 return img;
434} 435}
435 436
436rxvt_img * 437rxvt_img *

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines