From abc8198a1fa87def8a6e23f39f076ae97d2fca58 Mon Sep 17 00:00:00 2001 From: Wouter Wijsman Date: Wed, 9 Feb 2022 18:07:46 +0100 Subject: [PATCH] Render all sides when drawing rect on PSP --- src/render/psp/SDL_render_psp.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/render/psp/SDL_render_psp.c b/src/render/psp/SDL_render_psp.c index 7f3db91f6..3cd9c7810 100644 --- a/src/render/psp/SDL_render_psp.c +++ b/src/render/psp/SDL_render_psp.c @@ -774,14 +774,13 @@ PSP_QueueFillRects(SDL_Renderer * renderer, SDL_RenderCommand *cmd, const SDL_FR cmd->data.draw.count = count; for (i = 0; i < count; i++, rects++) { - const SDL_FRect *rect = &rects[i]; - verts->x = rect->x; - verts->y = rect->y; + verts->x = rects->x; + verts->y = rects->y; verts->z = 0.0f; verts++; - verts->x = rect->x + rect->w; - verts->y = rect->y + rect->h; + verts->x = rects->x + rects->w + 0.5f; + verts->y = rects->y + rects->h + 0.5f; verts->z = 0.0f; verts++; }