taler-mdb

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

commit 412ca421b4b692a8d2ee162443f7a5fef17f4066
parent 71f42ce9d750d52b47a829faff0d25847dd08cf0
Author: Boss Marco <bossm8@students.bfh.ch>
Date:   Sat, 16 Nov 2019 09:19:53 +0100

fix

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

diff --git 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"); }