| 3001 | } |
| 3002 | |
| 3003 | int |
| 3004 | SDL_RenderCopyEx(SDL_Renderer * renderer, SDL_Texture * texture, |
| 3005 | const SDL_Rect * srcrect, const SDL_Rect * dstrect, |
| 3006 | const double angle, const SDL_Point *center, const SDL_RendererFlip flip) |
| 3007 | { |
| 3008 | SDL_FRect dstfrect; |
| 3009 | SDL_FRect *pdstfrect = NULL; |
| 3010 | SDL_FPoint fcenter; |
| 3011 | SDL_FPoint *pfcenter = NULL; |
| 3012 | |
| 3013 | if (dstrect) { |
| 3014 | dstfrect.x = (float) dstrect->x; |
| 3015 | dstfrect.y = (float) dstrect->y; |
| 3016 | dstfrect.w = (float) dstrect->w; |
| 3017 | dstfrect.h = (float) dstrect->h; |
| 3018 | pdstfrect = &dstfrect; |
| 3019 | } |
| 3020 | |
| 3021 | if (center) { |
| 3022 | fcenter.x = (float) center->x; |
| 3023 | fcenter.y = (float) center->y; |
| 3024 | pfcenter = &fcenter; |
| 3025 | } |
| 3026 | |
| 3027 | return SDL_RenderCopyExF(renderer, texture, srcrect, pdstfrect, angle, pfcenter, flip); |
| 3028 | } |
| 3029 | |
| 3030 | int |
| 3031 | SDL_RenderCopyExF(SDL_Renderer * renderer, SDL_Texture * texture, |