sw_engine: fix a missing anti-aliasing

enable fill anti-aliasing when the stroke is trimming.
This commit is contained in:
Hermet Park 2024-06-13 13:26:45 +09:00
parent de693c3e3e
commit 1099c65fe7

View file

@ -86,7 +86,7 @@ struct SwShapeTask : SwTask
Additionally, the stroke style should not be dashed. */
bool antialiasing(float strokeWidth)
{
return strokeWidth < 2.0f || rshape->stroke->dashCnt > 0 || rshape->stroke->strokeFirst;
return strokeWidth < 2.0f || rshape->stroke->dashCnt > 0 || rshape->stroke->strokeFirst || rshape->strokeTrim();
}
float validStrokeWidth()