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.98 by root, Sun Jun 17 21:58:18 2012 UTC vs.
Revision 1.99 by root, Mon Jul 2 01:32:26 2012 UTC

815} 815}
816 816
817rxvt_img * 817rxvt_img *
818rxvt_img::rotate (int cx, int cy, nv phi) 818rxvt_img::rotate (int cx, int cy, nv phi)
819{ 819{
820#if 0
821 { c, -s, cx - c * cx + s * cy },
822 { s, c, cy - s * cx - c * cy },
823 { 0, 0, 1 }
824#endif
825
826 move (-cx, -cy); 820 move (-cx, -cy);
827 rxvt_img *img = transform (mat3x3::rotate (phi)); 821 rxvt_img *img = transform (mat3x3::rotate (phi));
828 move ( cx, cy); 822 move ( cx, cy);
829 img->move (cx, cy); 823 img->move (cx, cy);
830 824
868} 862}
869 863
870rxvt_img * 864rxvt_img *
871rxvt_img::filter (const char *name, int nparams, nv *params) 865rxvt_img::filter (const char *name, int nparams, nv *params)
872{ 866{
873 rxvt_img *img = new_empty ();
874
875 composer cc (img); 867 composer cc (this);
876 868
877 XFixed *xparams = rxvt_temp_buf<XFixed> (nparams); 869 XFixed *xparams = rxvt_temp_buf<XFixed> (nparams);
878 870
879 for (int i = 0; i < nparams; ++i) 871 for (int i = 0; i < nparams; ++i)
880 xparams [i] = XDoubleToFixed (params [i]); 872 xparams [i] = XDoubleToFixed (params [i]);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines