| 530 | } |
| 531 | |
| 532 | static int |
| 533 | QueueCmdCopyEx(SDL_Renderer *renderer, SDL_Texture * texture, |
| 534 | const SDL_Rect * srcquad, const SDL_FRect * dstrect, |
| 535 | const double angle, const SDL_FPoint *center, const SDL_RendererFlip flip) |
| 536 | { |
| 537 | SDL_RenderCommand *cmd = PrepQueueCmdDrawTexture(renderer, texture, SDL_RENDERCMD_COPY_EX); |
| 538 | int retval = -1; |
| 539 | SDL_assert(renderer->QueueCopyEx != NULL); /* should have caught at higher level. */ |
| 540 | if (cmd != NULL) { |
| 541 | retval = renderer->QueueCopyEx(renderer, cmd, texture, srcquad, dstrect, angle, center, flip); |
| 542 | if (retval < 0) { |
| 543 | cmd->command = SDL_RENDERCMD_NO_OP; |
| 544 | } |
| 545 | } |
| 546 | return retval; |
| 547 | } |
| 548 | |
| 549 | |
| 550 | static int UpdateLogicalSize(SDL_Renderer *renderer); |
no test coverage detected