-
Notifications
You must be signed in to change notification settings - Fork 3
feat: Initial version of double masking #327
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
Changes from all commits
61069a5
69799b5
81c369f
8b0c650
6dafcb3
04b4c75
55b00a7
8ddba24
008a414
4d5536b
ce45b42
50aee55
04c252e
54f08de
d6fd378
59c2f6d
3ff3e81
41e2645
ac99967
801ae96
e618524
a92e869
d86bd09
1ece408
3e570b4
aef3154
12ed36c
343690e
a4cf491
b117d79
55e29da
4c0db23
0144cef
31bb519
4daa13f
4558bbe
7cb314b
15825ce
89ba6c5
0079a42
1180d8b
04d2537
a632d0e
7584f01
483930b
3052849
50033e8
7a21080
934607b
87c3415
16a967c
278da36
fe4fa07
caac714
164dc72
8b2351a
b2b1aed
277ae2e
238b8bd
1703c99
842a899
b80c0db
4720fb0
d8574cc
71d58cf
556365a
b92e75c
45f64f9
9e45460
8a97643
a053d38
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -135,11 +135,6 @@ data class ComposeMaskTarget( | |
| t4.x, t4.y | ||
| ) | ||
|
|
||
| for (i in pts.indices step 2) { | ||
| pts[i] -= context.rootX | ||
| pts[i + 1] -= context.rootY | ||
| } | ||
|
|
||
| return pts | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Bug: Compose masks use different coordinate system than Native masksThe removal of the |
||
| } | ||
| } | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bug: Missing continue causes incorrect capture counting logic
When
captureResultis null andi != 0, the code setsbeforeMasks[i] = nullbut then falls through to incrementcaptured++and assigncaptureResults[i] = captureResult. Acontinuestatement is missing after settingbeforeMasks[i] = null. This causescapturedto count all loop iterations rather than just successful captures, making theif (captured == 0)check at line 129-131 dead code sincecapturedis always incremented.