mirror of https://github.com/encounter/SDL.git
Fixed bug 5146 - SDL_RenderFillRect doesn't work in DirectFB
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.
This commit is contained in:
parent
a6ca61d732
commit
bdfd1b68ba
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue