Fixed the code to use the correct scaling transformation matrix with XRender.
This commit is contained in:
parent
6a85ea7b52
commit
ad2351c699
1 changed files with 1 additions and 1 deletions
|
@ -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. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue