gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-taler-mdb] 81/93: see stuff


From: gnunet
Subject: [taler-taler-mdb] 81/93: see stuff
Date: Mon, 18 Nov 2019 21:13:44 +0100

This is an automated email from the git hooks/post-receive script.

marco-boss pushed a commit to branch master
in repository taler-mdb.

commit 895612309e3a1c33f435a832888f6dae6783c48e
Author: Christian Grothoff <address@hidden>
AuthorDate: Sat Nov 16 11:08:30 2019 +0100

    see stuff
---
 src/main.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/main.c b/src/main.c
index f84c4f5..611d9bd 100644
--- a/src/main.c
+++ b/src/main.c
@@ -199,7 +199,7 @@ show_qrcode (const char *uri)
   size_t yOff;
   size_t width;
   size_t height;
-  unsigned int scale;
+  float scale;
 
   qri = QRinput_new2 (0, QR_ECLEVEL_M);
   if (NULL == qri)
@@ -246,7 +246,7 @@ show_qrcode (const char *uri)
                      qrDisplay.var_info.yres);
   // size /= 2;
   unsigned int nwidth = qrc->width + 8; // 4 pixel border
-  scale = size / nwidth;
+  scale = 1.0 * size / nwidth;
   xOff = 4 * scale;
   yOff = 4 * scale;
   if (qrDisplay.var_info.xres < qrDisplay.var_info.yres)

-- 
To stop receiving notification emails like this one, please contact
address@hidden.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]