| 516 | } |
| 517 | |
| 518 | static int |
| 519 | QueueCmdCopy(SDL_Renderer *renderer, SDL_Texture * texture, const SDL_Rect * srcrect, const SDL_FRect * dstrect) |
| 520 | { |
| 521 | SDL_RenderCommand *cmd = PrepQueueCmdDrawTexture(renderer, texture, SDL_RENDERCMD_COPY); |
| 522 | int retval = -1; |
| 523 | if (cmd != NULL) { |
| 524 | retval = renderer->QueueCopy(renderer, cmd, texture, srcrect, dstrect); |
| 525 | if (retval < 0) { |
| 526 | cmd->command = SDL_RENDERCMD_NO_OP; |
| 527 | } |
| 528 | } |
| 529 | return retval; |
| 530 | } |
| 531 | |
| 532 | static int |
| 533 | QueueCmdCopyEx(SDL_Renderer *renderer, SDL_Texture * texture, |
no test coverage detected