Mercurial > sdl-ios-xcode
diff src/video/x11/SDL_x11render.c @ 4632:066ce836b80e
Fixed the code to use the correct scaling transformation matrix with XRender.
author | Sunny Sachanandani <sunnysachanandani@gmail.com> |
---|---|
date | Tue, 03 Aug 2010 08:53:20 +0530 |
parents | 02895e9c796b |
children | 100f7ab48946 |
line wrap: on
line diff
--- 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. */