repo: rxvt-unicode-sixel action: commit revision: path_from: revision_from: 6e73b4608e9d08d64a28eea77f92eec1f3f89e79: path_to: revision_to:
commit 6e73b4608e9d08d64a28eea77f92eec1f3f89e79 Author: Marc LehmannDate: Mon Jul 2 01:32:26 2012 +0000 *** empty log message *** diff --git a/src/perl/background b/src/perl/background
--- a/src/perl/background +++ b/src/perl/background @@ -279,15 +279,11 @@ is Iloaded from the filesystem again. =cut - sub load_uc($) { - $self->new_img_from_file ($path) - } - sub load($) { my ($path) = @_; $_IMG_CACHE{$path} || do { - my $img = load_uc $path; + my $img = $self->new_img_from_file ($path); Scalar::Util::weaken ($_IMG_CACHE{$path} = $img); $img } diff --git a/src/rxvtimg.C b/src/rxvtimg.C
--- a/src/rxvtimg.C
+++ b/src/rxvtimg.C
@@ -817,12 +817,6 @@ rxvt_img::scale (int new_width, int new_height)
rxvt_img *
rxvt_img::rotate (int cx, int cy, nv phi)
{
-#if 0
- { c, -s, cx - c * cx + s * cy },
- { s, c, cy - s * cx - c * cy },
- { 0, 0, 1 }
-#endif
-
move (-cx, -cy);
rxvt_img *img = transform (mat3x3::rotate (phi));
move ( cx, cy);
@@ -870,9 +864,7 @@ rxvt_img::tint (const rgba &c)
rxvt_img *
rxvt_img::filter (const char *name, int nparams, nv *params)
{
- rxvt_img *img = new_empty ();
-
- composer cc (img);
+ composer cc (this);
XFixed *xparams = rxvt_temp_buf (nparams);
-----END OF PAGE-----