renderer: fix trimmed rect clippers

Rectangular clippers followed the 'fastTrack' path,
which caused their trimming to be ignored. Fixed.
This commit is contained in:
Mira Grudzinska 2025-02-27 08:38:43 +01:00 committed by Hermet Park
parent bf5cea982c
commit 83eb2a0430

View file

@ -78,6 +78,9 @@ static Result _compFastTrack(RenderMethod* renderer, Paint* cmpTarget, const Mat
/* Access Shape class by Paint is bad... but it's ok still it's an internal usage. */
auto shape = static_cast<Shape*>(cmpTarget);
//Trimming likely makes the shape non-rectangular
if (SHAPE(shape)->rs.trimpath()) return Result::InsufficientCondition;
//Rectangle Candidates?
const Point* pts;
uint32_t ptsCnt;