Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix bounds on mask composite #183

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

giantpand2000
Copy link

Make the right IntRect from Mask and position

@jrmuizel
Copy link
Owner

jrmuizel commented Apr 3, 2022

Can you add a test as well?

@giantpand2000
Copy link
Author

giantpand2000 commented Apr 4, 2022

Added. Previous will not pass this test:

> Executing task: cargo test --package raqote --lib -- tests::tests::mask_composite_position --exact --nocapture <

    Finished test [unoptimized + debuginfo] target(s) in 0.07s
     Running unittests src/lib.rs (target/debug/deps/raqote-697e8df342672d23)

running 1 test
thread 'tests::tests::mask_composite_position' panicked at 'assertion failed: `(left == right)`
  left: `0`,
 right: `4294901760`', src/tests.rs:998:9

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.

2 participants