avoid rounding errors when setting up the transformation matrix

SVN revision: 25765
This commit is contained in:
tilman 2006-09-12 10:30:12 +00:00 committed by tilman
parent 912834c325
commit ce599dcde7
1 changed files with 2 additions and 2 deletions

View File

@ -431,8 +431,8 @@ _xr_render_surface_composite(Xrender_Surface *srs, Xrender_Surface *drs, RGBA_Dr
}
init_transform(&xf);
xf.matrix[0][0] = XDoubleToFixed(sw) / w;
xf.matrix[1][1] = XDoubleToFixed(sh) / h;
xf.matrix[0][0] = XDoubleToFixed((float) sw / (float) w);
xf.matrix[1][1] = XDoubleToFixed((float) sh / (float) h);
_xr_render_surface_clips_set(drs, dc, x, y, w, h);
if (trs)