mirror of
https://github.com/Ryujinx/SDL.git
synced 2025-01-11 07:05:38 +00:00
DirectFB: provide RenderCopyEx via RenderGeometry
This commit is contained in:
parent
79732c9d1e
commit
23e252bfc5
|
@ -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,
|
int num_vertices, const void *indices, int num_indices, int size_indices,
|
||||||
float scale_x, float scale_y)
|
float scale_x, float scale_y)
|
||||||
{
|
{
|
||||||
DirectFB_TextureData *texturedata = NULL;
|
|
||||||
int i;
|
int i;
|
||||||
int count = indices ? num_indices : num_vertices;
|
int count = indices ? num_indices : num_vertices;
|
||||||
float *verts;
|
float *verts;
|
||||||
|
@ -648,10 +647,6 @@ DirectFB_QueueGeometry(SDL_Renderer *renderer, SDL_RenderCommand *cmd, SDL_Textu
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (texture) {
|
|
||||||
texturedata = (DirectFB_TextureData *) texture->driverdata;
|
|
||||||
}
|
|
||||||
|
|
||||||
cmd->data.draw.count = count;
|
cmd->data.draw.count = count;
|
||||||
size_indices = indices ? size_indices : 0;
|
size_indices = indices ? size_indices : 0;
|
||||||
|
|
||||||
|
@ -722,15 +717,6 @@ DirectFB_QueueCopy(SDL_Renderer * renderer, SDL_RenderCommand *cmd, SDL_Texture
|
||||||
return 0;
|
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
|
static int
|
||||||
DirectFB_RunCommandQueue(SDL_Renderer * renderer, SDL_RenderCommand *cmd, void *vertices, size_t vertsize)
|
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;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
case SDL_RENDERCMD_COPY_EX: /* unused */
|
||||||
case SDL_RENDERCMD_COPY_EX:
|
break;
|
||||||
break; /* unsupported */
|
|
||||||
|
|
||||||
case SDL_RENDERCMD_NO_OP:
|
case SDL_RENDERCMD_NO_OP:
|
||||||
break;
|
break;
|
||||||
|
@ -1199,7 +1184,6 @@ DirectFB_CreateRenderer(SDL_Window * window, Uint32 flags)
|
||||||
renderer->QueueGeometry = DirectFB_QueueGeometry;
|
renderer->QueueGeometry = DirectFB_QueueGeometry;
|
||||||
renderer->QueueFillRects = DirectFB_QueueFillRects;
|
renderer->QueueFillRects = DirectFB_QueueFillRects;
|
||||||
renderer->QueueCopy = DirectFB_QueueCopy;
|
renderer->QueueCopy = DirectFB_QueueCopy;
|
||||||
renderer->QueueCopyEx = DirectFB_QueueCopyEx;
|
|
||||||
renderer->RunCommandQueue = DirectFB_RunCommandQueue;
|
renderer->RunCommandQueue = DirectFB_RunCommandQueue;
|
||||||
renderer->RenderPresent = DirectFB_RenderPresent;
|
renderer->RenderPresent = DirectFB_RenderPresent;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue