Skip to content

Fix bounds on mask composite#183

Open
giantpand2000 wants to merge 2 commits intojrmuizel:masterfrom
giantpand2000:master
Open

Fix bounds on mask composite#183
giantpand2000 wants to merge 2 commits intojrmuizel:masterfrom
giantpand2000:master

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