and fix final off-by-a-bit in the xform.

SVN revision: 26966
This commit is contained in:
Carsten Haitzler 2006-11-05 12:53:25 +00:00
parent b24c5e70da
commit d75744200c
1 changed files with 2 additions and 2 deletions

View File

@ -326,8 +326,8 @@ set_xtransform_scale(XTransform *t, int sw, int sh, int w, int h, int tx, int ty
// { sh--; h--; }
t->matrix[0][0] = XDoubleToFixed((double)(sw) / (double)(w));
t->matrix[1][1] = XDoubleToFixed((double)(sh) / (double)(h));
t->matrix[2][0] = tx;
t->matrix[2][1] = ty;
t->matrix[2][0] = (tx * sw) / w;
t->matrix[2][1] = (ty * sh) / h;
}
// when color multiplier is used want: instead