Mercurial > sdl-ios-xcode
comparison src/video/x11/SDL_x11render.c @ 4595:73eeadf7ed8e
Fixed a minor bug with texture blending.
author | Sunny Sachanandani <sunnysachanandani@gmail.com> |
---|---|
date | Sat, 17 Jul 2010 15:53:29 +0530 |
parents | f28c23cc1a08 |
children | dc26c37ad70e |
comparison
equal
deleted
inserted
replaced
4594:f28c23cc1a08 | 4595:73eeadf7ed8e |
---|---|
1450 {XDoubleToFixed(0), XDoubleToFixed(yscale), XDoubleToFixed(0)}, | 1450 {XDoubleToFixed(0), XDoubleToFixed(yscale), XDoubleToFixed(0)}, |
1451 {XDoubleToFixed(0), XDoubleToFixed(0), XDoubleToFixed(xscale * yscale)}}}; | 1451 {XDoubleToFixed(0), XDoubleToFixed(0), XDoubleToFixed(xscale * yscale)}}}; |
1452 XRenderSetPictureTransform(data->display, texturedata->picture, &xform); | 1452 XRenderSetPictureTransform(data->display, texturedata->picture, &xform); |
1453 | 1453 |
1454 XRenderComposite(data->display, texturedata->blend_op, | 1454 XRenderComposite(data->display, texturedata->blend_op, |
1455 texturedata->picture, None, data->drawable_pict, | 1455 texturedata->picture, pict, data->drawable_pict, |
1456 0, 0, 0, 0, dstrect->x, dstrect->y, | 1456 0, 0, 0, 0, dstrect->x, dstrect->y, |
1457 dstrect->w, dstrect->h); | 1457 dstrect->w, dstrect->h); |
1458 | 1458 |
1459 XTransform identity = {{ | 1459 XTransform identity = {{ |
1460 {XDoubleToFixed(1), XDoubleToFixed(0), XDoubleToFixed(0)}, | 1460 {XDoubleToFixed(1), XDoubleToFixed(0), XDoubleToFixed(0)}, |