DirectFB: provide RenderCopyEx via RenderGeometry
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59
diff --git a/src/video/directfb/SDL_DirectFB_render.c b/src/video/directfb/SDL_DirectFB_render.c
index 5f5e0b8..00b70b3 100644
--- a/src/video/directfb/SDL_DirectFB_render.c
+++ b/src/video/directfb/SDL_DirectFB_render.c
@@ -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;
@@ -723,15 +718,6 @@ DirectFB_QueueCopy(SDL_Renderer * renderer, SDL_RenderCommand *cmd, SDL_Texture
}
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)
{
/* !!! FIXME: there are probably some good optimization wins in here if someone wants to look it over. */
@@ -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;