Mercurial > sdl-ios-xcode
changeset 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 | 0a3bfd46c4db |
children | 100f7ab48946 |
files | src/video/x11/SDL_x11render.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
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. */