Fixed the code to use the correct scaling transformation matrix with XRender.
authorSunny Sachanandani <sunnysachanandani@gmail.com>
Tue, 03 Aug 2010 08:53:20 +0530
changeset 4632 066ce836b80e
parent 4631 0a3bfd46c4db
child 4633 100f7ab48946
Fixed the code to use the correct scaling transformation matrix with XRender.
src/video/x11/SDL_x11render.c
--- a/src/video/x11/SDL_x11render.c	Tue Aug 03 08:05:53 2010 +0530
+++ b/src/video/x11/SDL_x11render.c	Tue Aug 03 08:53:20 2010 +0530
@@ -1938,7 +1938,7 @@
             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. */