Commit ad2351c6 authored by Sunny Sachanandani's avatar Sunny Sachanandani

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

parent 6a85ea7b
......@@ -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. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment