mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-08 13:43:43 +00:00
renderer: fix trimmed rect clippers
Rectangular clippers followed the 'fastTrack' path, which caused their trimming to be ignored. Fixed.
This commit is contained in:
parent
bf5cea982c
commit
83eb2a0430
1 changed files with 3 additions and 0 deletions
|
@ -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. */
|
/* Access Shape class by Paint is bad... but it's ok still it's an internal usage. */
|
||||||
auto shape = static_cast<Shape*>(cmpTarget);
|
auto shape = static_cast<Shape*>(cmpTarget);
|
||||||
|
|
||||||
|
//Trimming likely makes the shape non-rectangular
|
||||||
|
if (SHAPE(shape)->rs.trimpath()) return Result::InsufficientCondition;
|
||||||
|
|
||||||
//Rectangle Candidates?
|
//Rectangle Candidates?
|
||||||
const Point* pts;
|
const Point* pts;
|
||||||
uint32_t ptsCnt;
|
uint32_t ptsCnt;
|
||||||
|
|
Loading…
Add table
Reference in a new issue