Skip to content

Commit 5db4dde

Browse files
update DrawUtil functions
1 parent 57469d9 commit 5db4dde

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cropper/src/main/java/com/smarttoolfactory/cropper/util/DrawScopeUtils.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ fun Modifier.drawOutlineWithBlendModeAndChecker(
107107
) = this.then(
108108
Modifier.drawWithCache {
109109

110-
val (left, top, outline) = buildOutline(
110+
val (offset, outline) = buildOutline(
111111
aspectRatio,
112112
coefficient,
113113
shape,
@@ -118,7 +118,7 @@ fun Modifier.drawOutlineWithBlendModeAndChecker(
118118

119119
onDrawWithContent {
120120
drawBlockWithCheckerAndLayer(dstBitmap) {
121-
translate(left = left, top = top) {
121+
translate(left = offset.x, top = offset.y) {
122122
drawOutline(
123123
outline = outline,
124124
color = color,

0 commit comments

Comments
 (0)