Skip to content

Commit

Permalink
Fixed bug 5146 - SDL_RenderFillRect doesn't work in DirectFB
Browse files Browse the repository at this point in the history
Lacky

It looks like refactoring of SDL2 internal API has broken SDL_RenderFillRect for DirectFB. In new version function SDL_RenderFillRect returns 0, but rectangle is not visible.

Replacing "count" with "len" in the argument list for SDL_memcpy in DirectFB_QueueFillRects fixes problem.
  • Loading branch information
slouken committed May 29, 2020
1 parent a6ca61d commit bdfd1b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/video/directfb/SDL_DirectFB_render.c
Expand Up @@ -626,7 +626,7 @@ DirectFB_QueueFillRects(SDL_Renderer * renderer, SDL_RenderCommand *cmd, const S
}

cmd->data.draw.count = count;
SDL_memcpy(verts, rects, count);
SDL_memcpy(verts, rects, len);
return 0;
}

Expand Down

0 comments on commit bdfd1b6

Please sign in to comment.