1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-01-11 16:00:57 +00:00

legacy: fix style

This commit is contained in:
Pavol Rusnak 2019-08-07 16:58:31 +02:00
parent eaa85ddd6e
commit 6d861a5d05
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D
2 changed files with 5 additions and 3 deletions

View File

@ -451,14 +451,16 @@ void next_word(void) {
if (word_pos == 0) {
const char *const *wl = mnemonic_wordlist();
strlcpy(fake_word, wl[random_uniform(2048)], sizeof(fake_word));
oledDrawStringCenter(OLED_WIDTH / 2, 24, fake_word, FONT_FIXED | FONT_DOUBLE);
oledDrawStringCenter(OLED_WIDTH / 2, 24, fake_word,
FONT_FIXED | FONT_DOUBLE);
} else {
fake_word[0] = 0;
char desc[] = "the ##th word";
format_number(desc + 4, word_pos);
oledDrawStringCenter(OLED_WIDTH / 2, 24, desc, FONT_FIXED | FONT_DOUBLE);
}
oledDrawStringCenter(OLED_WIDTH / 2, 48, _("on your computer"), FONT_STANDARD);
oledDrawStringCenter(OLED_WIDTH / 2, 48, _("on your computer"),
FONT_STANDARD);
// 35 is the maximum pixels used for a pixel row ("the 21st word")
oledSCA(24 - 2, 24 + 15 + 2, 35);
oledInvert(0, 24 - 2, OLED_WIDTH - 1, 24 + 15 + 2);

View File

@ -23,10 +23,10 @@
#include "fsm.h"
#include "gettext.h"
#include "layout2.h"
#include "oled.h"
#include "memzero.h"
#include "messages.h"
#include "messages.pb.h"
#include "oled.h"
#include "protect.h"
#include "rng.h"
#include "sha2.h"