Fixed setting height and width in native app

This commit is contained in:
dankito 2023-04-11 01:08:26 +02:00
parent 69fb044dd1
commit cb9c60b0e4
2 changed files with 2 additions and 2 deletions

View File

@ -9,7 +9,7 @@ fun main(args: Array<String>) {
exit(0)
}
val config = EpcQrCodeConfig(args[0], args[1], args[2], if (args.size > 3) args[3] else null)
val config = EpcQrCodeConfig(args[0], args[1], args[2], if (args.size > 3) args[3] else null, qrCodeHeightAndWidth = 40)
NativeApp().generateAndShowEpcQrCode(config)
}

View File

@ -4,7 +4,7 @@ package net.codinux.banking.epcqrcode
class NativeApp {
fun generateAndShowEpcQrCode(config: EpcQrCodeConfig) {
val epcQrCode = EpcQrCodeGenerator().generateEpcQrCode(config, 40)
val epcQrCode = EpcQrCodeGenerator().generateEpcQrCode(config)
println(epcQrCode.qrCodeAsSmallString(4, true))
}