src/render/software/SDL_render_sw.c
changeset 12372 bced4041fcc0
parent 11958 d7582d7286aa
child 12381 dc9108cd4340
     1.1 --- a/src/render/software/SDL_render_sw.c	Mon Oct 29 19:58:59 2018 -0700
     1.2 +++ b/src/render/software/SDL_render_sw.c	Tue Oct 30 07:00:03 2018 -0700
     1.3 @@ -657,6 +657,11 @@
     1.4          blitRequired = SDL_TRUE;
     1.5      }
     1.6  
     1.7 +    /* srcrect is not selecting the whole src surface, so cropping is needed */
     1.8 +    if (!(srcrect->w == src->w && srcrect->h == src->h && srcrect->x == 0 && srcrect->y == 0)) {
     1.9 +        blitRequired = SDL_TRUE;
    1.10 +    }
    1.11 +
    1.12      /* The color and alpha modulation has to be applied before the rotation when using the NONE and MOD blend modes. */
    1.13      if ((blendmode == SDL_BLENDMODE_NONE || blendmode == SDL_BLENDMODE_MOD) && (alphaMod & rMod & gMod & bMod) != 255) {
    1.14          applyModulation = SDL_TRUE;