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.42 by root, Thu Jun 7 11:52:26 2012 UTC vs.
Revision 1.43 by sf-exg, Thu Jun 7 13:02:50 2012 UTC

477} 477}
478 478
479rxvt_img * 479rxvt_img *
480rxvt_img::scale (int new_width, int new_height) 480rxvt_img::scale (int new_width, int new_height)
481{ 481{
482 if (w == new_width && h == new_height)
483 return clone ();
484
482 double matrix[9] = { 485 double matrix[9] = {
483 w / (double)new_width, 0, 0, 486 w / (double)new_width, 0, 0,
484 0, h / (double)new_height, 0, 487 0, h / (double)new_height, 0,
485 0, 0, 1 488 0, 0, 1
486 }; 489 };

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines