--- rxvt-unicode/src/rxvtimg.C 2012/06/14 19:42:01 1.88 +++ rxvt-unicode/src/rxvtimg.C 2012/06/14 19:44:45 1.90 @@ -637,12 +637,14 @@ for (int i = 0; i < 2; ++i) { nv v; + v = mat_apply (matrix, i, 0+x, 0+y); rmin [i] = rmax [i] = v; v = mat_apply (matrix, i, w+x, 0+y); min_it (rmin [i], v); max_it (rmax [i], v); v = mat_apply (matrix, i, 0+x, h+y); min_it (rmin [i], v); max_it (rmax [i], v); v = mat_apply (matrix, i, w+x, h+y); min_it (rmin [i], v); max_it (rmax [i], v); } + // TODO: adjust matrix for subpixel accuracy int dx = floor (rmin [0]); int dy = floor (rmin [1]);