Skip to content

Commit

Permalink
Set coil's precision to INEXACT only if it wasn't explicitly set
Browse files Browse the repository at this point in the history
  • Loading branch information
saket committed Apr 28, 2024
1 parent 457d3fb commit 0b1db6b
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,12 @@ internal class Resolver(
)
// Increase memory cache hit rate because the image will anyway fit the canvas
// size at draw time.
.precision(Precision.INEXACT)
.precision(
when (request.defined.precision) {
Precision.EXACT -> request.precision
else -> Precision.INEXACT
}
)
.build()
)

Expand Down

0 comments on commit 0b1db6b

Please sign in to comment.