| 480 | } |
| 481 | |
| 482 | static int |
| 483 | QueueCmdFillRects(SDL_Renderer *renderer, const SDL_FRect * rects, const int count) |
| 484 | { |
| 485 | SDL_RenderCommand *cmd = PrepQueueCmdDrawSolid(renderer, SDL_RENDERCMD_FILL_RECTS); |
| 486 | int retval = -1; |
| 487 | if (cmd != NULL) { |
| 488 | retval = renderer->QueueFillRects(renderer, cmd, rects, count); |
| 489 | if (retval < 0) { |
| 490 | cmd->command = SDL_RENDERCMD_NO_OP; |
| 491 | } |
| 492 | } |
| 493 | return retval; |
| 494 | } |
| 495 | |
| 496 | static SDL_RenderCommand * |
| 497 | PrepQueueCmdDrawTexture(SDL_Renderer *renderer, SDL_Texture *texture, const SDL_RenderCommandType cmdtype) |
no test coverage detected