taler-mdb

GNU Taler Extensions and Integrations
Log | Files | Refs | Submodules | README | LICENSE

commit dc983abf72961910574953525c17905d10ebe47d
parent f8ae16ab1507bea69b1b96e4958f836a78ba4ce9
Author: Christian Grothoff <christian@grothoff.org>
Date:   Sat, 16 Nov 2019 11:20:18 +0100

see stuff

Diffstat:
Msrc/main.c | 15++++++---------
1 file changed, 6 insertions(+), 9 deletions(-)

diff --git 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 }