From cb9c60b0e45881118428620d1594f61b488ef028 Mon Sep 17 00:00:00 2001 From: dankito Date: Tue, 11 Apr 2023 01:08:26 +0200 Subject: [PATCH] Fixed setting height and width in native app --- EpcQrCodeNativeApp/src/nativeMain/kotlin/Main.kt | 2 +- .../kotlin/net.codinux.banking.epcqrcode/NativeApp.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/EpcQrCodeNativeApp/src/nativeMain/kotlin/Main.kt b/EpcQrCodeNativeApp/src/nativeMain/kotlin/Main.kt index 42cf38a..a7ca1b9 100644 --- a/EpcQrCodeNativeApp/src/nativeMain/kotlin/Main.kt +++ b/EpcQrCodeNativeApp/src/nativeMain/kotlin/Main.kt @@ -9,7 +9,7 @@ fun main(args: Array) { 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) } \ No newline at end of file diff --git a/EpcQrCodeNativeApp/src/nativeMain/kotlin/net.codinux.banking.epcqrcode/NativeApp.kt b/EpcQrCodeNativeApp/src/nativeMain/kotlin/net.codinux.banking.epcqrcode/NativeApp.kt index 6c3da7c..553fa21 100644 --- a/EpcQrCodeNativeApp/src/nativeMain/kotlin/net.codinux.banking.epcqrcode/NativeApp.kt +++ b/EpcQrCodeNativeApp/src/nativeMain/kotlin/net.codinux.banking.epcqrcode/NativeApp.kt @@ -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)) }