Skip to content

Commit

Permalink
Probably fix of #26
Browse files Browse the repository at this point in the history
  • Loading branch information
alexzhirkevich committed Apr 19, 2023
1 parent 663ef86 commit 8b2a97c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ private class QrCodeDrawableImpl(
private fun createLogo(logoSize: Float): Bitmap? =
if (options.logo.drawable != null) {
options.logo.scale.scale(
options.logo.drawable, logoSize.roundToInt(), logoSize.roundToInt()
options.logo.drawable, logoSize.toInt(), logoSize.toInt()
).let { if (it.isMutable) it else it.copy(it.config, true) }.applyCanvas {
val clip = Path().apply {
addRect(0f, 0f, logoSize, logoSize, Path.Direction.CW)
Expand Down

0 comments on commit 8b2a97c

Please sign in to comment.