DirectFB: provide RenderCopyEx via RenderGeometry

This commit is contained in:
Sylvain 2021-10-02 14:57:40 +02:00 committed by Ryan C. Gordon
parent 79732c9d1e
commit 23e252bfc5

View file

@ -637,7 +637,6 @@ DirectFB_QueueGeometry(SDL_Renderer *renderer, SDL_RenderCommand *cmd, SDL_Textu
int num_vertices, const void *indices, int num_indices, int size_indices,
float scale_x, float scale_y)
{
DirectFB_TextureData *texturedata = NULL;
int i;
int count = indices ? num_indices : num_vertices;
float *verts;
@ -648,10 +647,6 @@ DirectFB_QueueGeometry(SDL_Renderer *renderer, SDL_RenderCommand *cmd, SDL_Textu
return -1;
}
if (texture) {
texturedata = (DirectFB_TextureData *) texture->driverdata;
}
cmd->data.draw.count = count;
size_indices = indices ? size_indices : 0;
@ -722,15 +717,6 @@ DirectFB_QueueCopy(SDL_Renderer * renderer, SDL_RenderCommand *cmd, SDL_Texture
return 0;
}
static int
DirectFB_QueueCopyEx(SDL_Renderer * renderer, SDL_RenderCommand *cmd, SDL_Texture * texture,
const SDL_Rect * srcrect, const SDL_FRect * dstrect,
const double angle, const SDL_FPoint *center, const SDL_RendererFlip flip)
{
return SDL_Unsupported();
}
static int
DirectFB_RunCommandQueue(SDL_Renderer * renderer, SDL_RenderCommand *cmd, void *vertices, size_t vertsize)
{
@ -1025,9 +1011,8 @@ DirectFB_RunCommandQueue(SDL_Renderer * renderer, SDL_RenderCommand *cmd, void *
break;
}
case SDL_RENDERCMD_COPY_EX:
break; /* unsupported */
case SDL_RENDERCMD_COPY_EX: /* unused */
break;
case SDL_RENDERCMD_NO_OP:
break;
@ -1199,7 +1184,6 @@ DirectFB_CreateRenderer(SDL_Window * window, Uint32 flags)
renderer->QueueGeometry = DirectFB_QueueGeometry;
renderer->QueueFillRects = DirectFB_QueueFillRects;
renderer->QueueCopy = DirectFB_QueueCopy;
renderer->QueueCopyEx = DirectFB_QueueCopyEx;
renderer->RunCommandQueue = DirectFB_RunCommandQueue;
renderer->RenderPresent = DirectFB_RenderPresent;