Skip to content

Commit

Permalink
PSP renderer fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
stdgregwar authored and sezero committed Dec 7, 2021
1 parent 6f6382f commit 21d46b7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/render/psp/SDL_render_psp.c
Original file line number Diff line number Diff line change
Expand Up @@ -659,7 +659,7 @@ PSP_QueueCopy(SDL_Renderer * renderer, SDL_RenderCommand *cmd, SDL_Texture * tex

cmd->data.draw.count = count;

verts = (VertTV *) SDL_AllocateRenderVertices(renderer, count * sizeof (VertTV), 4, &cmd->data.draw.first);
verts = (VertTV *) SDL_AllocateRenderVertices(renderer, count * 2 * sizeof (VertTV), 4, &cmd->data.draw.first);
if (!verts) {
return -1;
}
Expand All @@ -677,6 +677,7 @@ PSP_QueueCopy(SDL_Renderer * renderer, SDL_RenderCommand *cmd, SDL_Texture * tex
verts->x = curX;
verts->y = y;
verts->z = 0;
verts++;

curU += sourceWidth;
curX += polyWidth;
Expand All @@ -686,6 +687,7 @@ PSP_QueueCopy(SDL_Renderer * renderer, SDL_RenderCommand *cmd, SDL_Texture * tex
verts->x = curX;
verts->y = (y + height);
verts->z = 0;
verts++;
}
}

Expand Down

0 comments on commit 21d46b7

Please sign in to comment.