gnunet-svn
[Top][All Lists]
Advanced

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

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


From: gnunet
Subject: [taler-taler-mdb] 87/93: see stuff
Date: Mon, 18 Nov 2019 21:13:50 +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 dc983abf72961910574953525c17905d10ebe47d
Author: Christian Grothoff <address@hidden>
AuthorDate: Sat Nov 16 11:20:18 2019 +0100

    see stuff
---
 src/main.c | 15 ++++++---------
 1 file changed, 6 insertions(+), 9 deletions(-)

diff --git a/src/main.c b/src/main.c
index 44edc55..a6bd1af 100644
--- a/src/main.c
+++ b/src/main.c
@@ -205,6 +205,8 @@ show_qrcode (const char *uri)
     return;
   }
   upper = GNUNET_strdup (uri);
+  /* NOTE: this line fails, Taler wallet likes URIs only lower-case!
+     => Wallet bug! */
   //  GNUNET_STRINGS_utf8_toupper (uri, upper);
   /* first try encoding as uppercase-only alpha-numerical
      QR code (much smaller encoding); if that fails, also
@@ -306,15 +308,10 @@ cleanup_payment (struct PaymentActivity *pa)
 
 #if HAVE_QRENCODE_H
   if (NULL != qrDisplay.memory)
-  {
-    for (size_t row = 0; row < qrDisplay.var_info.yres; row++)
-    {
-      for (size_t col = 0; col < qrDisplay.var_info.xres; col++)
-      {
-        qrDisplay.memory[(row * qrDisplay.var_info.xres + col)] = 0xFFFF;
-      }
-    }
-  }
+    memset (qrDisplay.memory,
+            0xFF,
+            qrDisplay.var_info.xres * qrDisplay.var_info.yres
+            * sizeof (uint16_t));
   /* FIXME: dimm background light of display */
 #endif
 }

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



reply via email to

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