src/render/software/SDL_rotate.c
changeset 9775 8bd9e4e20d99
parent 9763 c2ba8ab27c1a
equal deleted inserted replaced
9774:3478d2a45b31 9775:8bd9e4e20d99
   464     }
   464     }
   465 
   465 
   466     /* copy alpha mod, color mod, and blend mode */
   466     /* copy alpha mod, color mod, and blend mode */
   467     {
   467     {
   468       SDL_BlendMode blendMode;
   468       SDL_BlendMode blendMode;
   469       Uint8 alphaMod, r, g, b;
   469       Uint8 alphaMod, cr, cg, cb;
   470       SDL_GetSurfaceAlphaMod(src, &alphaMod);
   470       SDL_GetSurfaceAlphaMod(src, &alphaMod);
   471       SDL_GetSurfaceBlendMode(src, &blendMode);
   471       SDL_GetSurfaceBlendMode(src, &blendMode);
   472       SDL_GetSurfaceColorMod(src, &r, &g, &b);
   472       SDL_GetSurfaceColorMod(src, &cr, &cg, &cb);
   473       SDL_SetSurfaceAlphaMod(rz_dst, alphaMod);
   473       SDL_SetSurfaceAlphaMod(rz_dst, alphaMod);
   474       SDL_SetSurfaceBlendMode(rz_dst, blendMode);
   474       SDL_SetSurfaceBlendMode(rz_dst, blendMode);
   475       SDL_SetSurfaceColorMod(rz_dst, r, g, b);
   475       SDL_SetSurfaceColorMod(rz_dst, cr, cg, cb);
   476     }
   476     }
   477 
   477 
   478     /*
   478     /*
   479     * Unlock source surface
   479     * Unlock source surface
   480     */
   480     */