repo: rxvt-unicode-sixel
action: commit
revision: 
path_from: 
revision_from: cc47298ccf86512605f340b36648013561549bb4:
path_to: 
revision_to: 
git.thebackupbox.net
rxvt-unicode-sixel
git clone git://git.thebackupbox.net/rxvt-unicode-sixel
commit cc47298ccf86512605f340b36648013561549bb4
Author: Marc Lehmann 
Date:   Thu Jun 14 19:36:35 2012 +0000

    *** empty log message ***

diff --git a/src/rxvtimg.C b/src/rxvtimg.C
index b14f4c0492e56675e4e0646db176fda66d4c027f..
index ..b4470b1c63cf82dc670c68db5dca22e6e9bdb3d2 100644
--- a/src/rxvtimg.C
+++ b/src/rxvtimg.C
@@ -632,8 +632,8 @@ rxvt_img *
 rxvt_img::transform (nv matrix[3][3])
 {
   // find new offset
-  int ox = mat_apply (matrix, 0, -x, -y);
-  int oy = mat_apply (matrix, 1, -x, -y);
+  int ox = mat_apply (matrix, 0, x, y);
+  int oy = mat_apply (matrix, 1, x, y);

   // calculate new pixel bounding box coordinates
   nv d [2], rmin[2], rmax[2];
@@ -656,7 +656,7 @@ rxvt_img::transform (nv matrix[3][3])
   nv inv[3][3];
   mat_invert (matrix, inv);

-  rxvt_img *img = new rxvt_img (s, format, ox - dx - d [0], oy - dy - d [1], new_width, new_height, repeat);
+  rxvt_img *img = new rxvt_img (s, format, dx + d [0] - ox, dy + d [1] - oy, new_width, new_height, repeat);
   img->alloc ();

   Display *dpy = s->display->dpy;

-----END OF PAGE-----