Skip to content

Use saturating arithmetic as we march along an active edge.#108

Open
pcwalton wants to merge 1 commit into
jrmuizel:masterfrom
pcwalton:saturate
Open

Use saturating arithmetic as we march along an active edge.#108
pcwalton wants to merge 1 commit into
jrmuizel:masterfrom
pcwalton:saturate

Conversation

@pcwalton

@pcwalton pcwalton commented Jan 4, 2020

Copy link
Copy Markdown

Fixes #107, but I'm not at all sure this is the best fix.

Fixes jrmuizel#107, but I'm not sure this is the best fix.
@jrmuizel

jrmuizel commented Jan 5, 2020

Copy link
Copy Markdown
Owner

I'm also not sure this is best fix. Right now raqote doesn't deal very well with large coordinates and I think it needs a more disciplined approach. That begins said, I'm not sure what that approach will look like yet.

FWIW, Skia clips edges to the bounds/clip before inserting them. This would work, but it's a little more elaborate and has the problem that changing the bounds can change the rasterization because rasterizing the clipped edge may not give exactly the same results as the original edge.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Overflow panic with large coordinates

2 participants