mirror of
https://github.com/yawut/SDL.git
synced 2026-09-30 20:26:42 -05:00
Fixed the code to use the correct scaling transformation matrix with XRender.
This commit is contained in:
@@ -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. */
|
||||
|
||||
Reference in New Issue
Block a user