Fixed the code to use the correct scaling transformation matrix with XRender.

This commit is contained in:
Sunny Sachanandani
2010-08-03 08:53:20 +05:30
parent d73650fe60
commit 49c44d1baa

View File

@@ -1938,7 +1938,7 @@ X11_RenderCopy(SDL_Renderer * renderer, SDL_Texture * texture,
XTransform xform = {{
{XDoubleToFixed(xscale), XDoubleToFixed(0), XDoubleToFixed(0)},
{XDoubleToFixed(0), XDoubleToFixed(yscale), XDoubleToFixed(0)},
{XDoubleToFixed(0), XDoubleToFixed(0), XDoubleToFixed(xscale * yscale)}}};
{XDoubleToFixed(0), XDoubleToFixed(0), XDoubleToFixed(1)}}};
XRenderSetPictureTransform(data->display, src, &xform);
/* Black magic follows. */