mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-13 19:44:28 +00:00
sw_engine image: code refactoring
Image raster sequence is getting quite complex... Clean up before further image optimization.
This commit is contained in:
parent
840e4f54f0
commit
b38996f5c9
1 changed files with 1 additions and 0 deletions
|
@ -503,6 +503,7 @@ Compositor* SwRenderer::target(const RenderRegion& region)
|
|||
cmp->compositor->image.stride = surface->stride;
|
||||
cmp->compositor->image.w = surface->w;
|
||||
cmp->compositor->image.h = surface->h;
|
||||
cmp->compositor->image.direct = true;
|
||||
|
||||
//We know partial clear region
|
||||
cmp->buffer = cmp->compositor->image.data + (cmp->stride * y + x);
|
||||
|
|
Loading…
Add table
Reference in a new issue