Skip to content

Commit 4ff23fa

Browse files
committed
Rename undoExifTransformations -> withReverseExifTransformations
1 parent ee2524e commit 4ff23fa

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

zoomable-image/sub-sampling-image/src/androidMain/kotlin/me/saket/telephoto/subsamplingimage/internal/AndroidImageRegionDecoder.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ internal class AndroidImageRegionDecoder private constructor(
4242
// tiles are generated by SubSamplingImage(), it assumes that the image is already in the correct orientation. To
4343
// counter this, rotate the bounds in anticlockwise direction to get the bounds in the original non-rotated image.
4444
@Suppress("NAME_SHADOWING")
45-
val region = region.undoExifTransformations()
45+
val region = region.withReverseExifTransformations()
4646

4747
val bitmap = withContext(dispatcher) {
4848
trace("decodeRegion") {
@@ -62,7 +62,7 @@ internal class AndroidImageRegionDecoder private constructor(
6262
}
6363
}
6464

65-
private fun IntRect.undoExifTransformations(): IntRect = run {
65+
private fun IntRect.withReverseExifTransformations(): IntRect = run {
6666
var transformedRegion = this
6767
val imageBounds = IntRect(IntOffset.Zero, imageSize)
6868

0 commit comments

Comments
 (0)