| | |
| | | */ |
| | | #include "../../SDL_internal.h" |
| | | |
| | | #if SDL_VIDEO_RENDER_SW && !SDL_RENDER_DISABLED |
| | | |
| | | #if defined(__WIN32__) |
| | | #include "../../core/windows/SDL_windows.h" |
| | | #endif |
| | |
| | | SDL_FillRect(rz_dst, NULL, colorkey); |
| | | } else if (blendmode == SDL_BLENDMODE_NONE) { |
| | | blendmode = SDL_BLENDMODE_BLEND; |
| | | } else if (blendmode == SDL_BLENDMODE_MOD) { |
| | | /* Without a colorkey, the target texture has to be white for the MOD blend mode so |
| | | } else if (blendmode == SDL_BLENDMODE_MOD || blendmode == SDL_BLENDMODE_MUL) { |
| | | /* Without a colorkey, the target texture has to be white for the MOD and MUL blend mode so |
| | | * that the pixels outside the rotated area don't affect the destination surface. |
| | | */ |
| | | colorkey = SDL_MapRGBA(rz_dst->format, 255, 255, 255, 0); |
| | |
| | | /* Return rotated surface */ |
| | | return rz_dst; |
| | | } |
| | | |
| | | #endif /* SDL_VIDEO_RENDER_SW && !SDL_RENDER_DISABLED */ |