src/video/x11/SDL_x11render.c
changeset 4632 066ce836b80e
parent 4630 02895e9c796b
child 4633 100f7ab48946
equal deleted inserted replaced
4631:0a3bfd46c4db 4632:066ce836b80e
  1936             double xscale = ((double) srcrect->w) / dstrect->w;
  1936             double xscale = ((double) srcrect->w) / dstrect->w;
  1937             double yscale = ((double) srcrect->h) / dstrect->h;
  1937             double yscale = ((double) srcrect->h) / dstrect->h;
  1938             XTransform xform = {{
  1938             XTransform xform = {{
  1939                     {XDoubleToFixed(xscale), XDoubleToFixed(0), XDoubleToFixed(0)},
  1939                     {XDoubleToFixed(xscale), XDoubleToFixed(0), XDoubleToFixed(0)},
  1940                     {XDoubleToFixed(0), XDoubleToFixed(yscale), XDoubleToFixed(0)},
  1940                     {XDoubleToFixed(0), XDoubleToFixed(yscale), XDoubleToFixed(0)},
  1941                     {XDoubleToFixed(0), XDoubleToFixed(0), XDoubleToFixed(xscale * yscale)}}};
  1941                     {XDoubleToFixed(0), XDoubleToFixed(0), XDoubleToFixed(1)}}};
  1942             XRenderSetPictureTransform(data->display, src, &xform);
  1942             XRenderSetPictureTransform(data->display, src, &xform);
  1943             
  1943             
  1944             /* Black magic follows. */
  1944             /* Black magic follows. */
  1945             if (texture->blendMode == SDL_BLENDMODE_MOD) {
  1945             if (texture->blendMode == SDL_BLENDMODE_MOD) {
  1946                 /* Copy the dst to a temp buffer. */
  1946                 /* Copy the dst to a temp buffer. */