diff options
author | Steffen Jaeckel <jaeckel-floss@eyet-services.de> | 2023-03-12 17:38:49 +0100 |
---|---|---|
committer | Steffen Jaeckel <jaeckel-floss@eyet-services.de> | 2023-03-12 17:39:57 +0100 |
commit | 2936b09a63728c9ac0c1e92786d37fec673da8d2 (patch) | |
tree | bab370288daa0ec39923f61697f9f82787246755 /src | |
parent | 091987db946895cb415d6da726cc1fa7c445c6d2 (diff) | |
download | profani-tty-2936b09a63728c9ac0c1e92786d37fec673da8d2.tar.gz |
change OMEMO QR code `0` bits to 'space'
This makes the generated QR code a lot better recognizable in my case. Signed-off-by: Steffen Jaeckel <jaeckel-floss@eyet-services.de>
Diffstat (limited to 'src')
-rw-r--r-- | src/ui/console.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/ui/console.c b/src/ui/console.c index b1720415..bab8e17c 100644 --- a/src/ui/console.c +++ b/src/ui/console.c @@ -915,10 +915,12 @@ cons_show_qrcode(const char* const text) strcat(pad, "\u2588\u2588"); } - win_println(console, THEME_DEFAULT, "", pad); + win_println(console, THEME_DEFAULT, "", ""); + win_println(console, THEME_DEFAULT, "", ""); + win_println(console, THEME_DEFAULT, "", "%s", pad); for (size_t y = 0; y < width; y += ZOOM_SIZE) { for (size_t x = 0; x < width; x += ZOOM_SIZE) { - strcat(buf, !(*data & 1) ? "\u2588\u2588" : "\u2800\u2800"); + strcat(buf, !(*data & 1) ? "\u2588\u2588" : " "); data++; } @@ -929,6 +931,8 @@ cons_show_qrcode(const char* const text) buf[0] = '\0'; } win_println(console, THEME_DEFAULT, "", "%s", pad); + win_println(console, THEME_DEFAULT, "", ""); + win_println(console, THEME_DEFAULT, "", ""); free(pad); free(buf); |