src/render/software/SDL_render_sw.c
changeset 12372 bced4041fcc0
parent 11958 d7582d7286aa
child 12381 dc9108cd4340
equal deleted inserted replaced
12371:41b93d8303d6 12372:bced4041fcc0
   652         blitRequired = SDL_TRUE;
   652         blitRequired = SDL_TRUE;
   653     }
   653     }
   654 
   654 
   655     /* If scaling and cropping is necessary, it has to be taken care of before the rotation. */
   655     /* If scaling and cropping is necessary, it has to be taken care of before the rotation. */
   656     if (!(srcrect->w == final_rect.w && srcrect->h == final_rect.h && srcrect->x == 0 && srcrect->y == 0)) {
   656     if (!(srcrect->w == final_rect.w && srcrect->h == final_rect.h && srcrect->x == 0 && srcrect->y == 0)) {
       
   657         blitRequired = SDL_TRUE;
       
   658     }
       
   659 
       
   660     /* srcrect is not selecting the whole src surface, so cropping is needed */
       
   661     if (!(srcrect->w == src->w && srcrect->h == src->h && srcrect->x == 0 && srcrect->y == 0)) {
   657         blitRequired = SDL_TRUE;
   662         blitRequired = SDL_TRUE;
   658     }
   663     }
   659 
   664 
   660     /* The color and alpha modulation has to be applied before the rotation when using the NONE and MOD blend modes. */
   665     /* The color and alpha modulation has to be applied before the rotation when using the NONE and MOD blend modes. */
   661     if ((blendmode == SDL_BLENDMODE_NONE || blendmode == SDL_BLENDMODE_MOD) && (alphaMod & rMod & gMod & bMod) != 255) {
   666     if ((blendmode == SDL_BLENDMODE_NONE || blendmode == SDL_BLENDMODE_MOD) && (alphaMod & rMod & gMod & bMod) != 255) {