gnunet-svn
[Top][All Lists]
Advanced

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

[taler-taler-mdb] 60/93: fix


From: gnunet
Subject: [taler-taler-mdb] 60/93: fix
Date: Mon, 18 Nov 2019 21:13:23 +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 412ca421b4b692a8d2ee162443f7a5fef17f4066
Author: Boss Marco <address@hidden>
AuthorDate: Sat Nov 16 09:19:53 2019 +0100

    fix
---
 src/main.c | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)

diff --git a/src/main.c b/src/main.c
index aa2342c..5c8965d 100644
--- a/src/main.c
+++ b/src/main.c
@@ -204,7 +204,7 @@ show_qrcode (const char *uri)
   if (0 < qrDisplay.devicefd)
     scale = 8;
   else
-    scale = 1;
+    scale = 2;
 
   const unsigned int n_channels = 3;
 
@@ -291,11 +291,8 @@ show_qrcode (const char *uri)
     {
       for (size_t col = 0; col < size; col++)
       {
-        for (unsigned int c = 0; c < n_channels; c++)
-        {
-          printf ("%c", (pixels[(row * size + col) * n_channels + c] == 0x00 ?
-                         '#' : ' '));
-        }
+        printf ("%c", (pixels[(row * size + col) * n_channels] ==
+                       0x00 ? '#' : ' '));
       }
       printf ("\n");
     }

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



reply via email to

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