Skip to content

Commit f62ce11

Browse files
authored
fix(ui): resolve display issue (#147)
1 parent 698e94b commit f62ce11

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

legacy/firmware/fsm_msg_nervos.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ void fsm_msgNervosGetAddress(const NervosGetAddress *msg) {
4141
if (msg->has_show_display && msg->show_display) {
4242
char desc[16] = {0};
4343
strcat(desc, "Nervos");
44-
strcat(desc, __("Address:"));
44+
strcat(desc, _(I__ADDRESS_COLON));
4545
if (!fsm_layoutAddress(resp->address, NULL, desc, false, 0, msg->address_n,
4646
msg->address_n_count, false, NULL, 0, 0, NULL)) {
4747
return;

legacy/firmware/gettext.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const char *gettext_from_en(char *en_str) {
2424
if (!is_valid_ascii((uint8_t *)en_str, len)) {
2525
return en_str;
2626
}
27-
for (int i = 0; i < I18N_LANGUAGE_ITEMS; i++) {
27+
for (int i = 0; i < I18N_ITEMS_COUNT; i++) {
2828
if ((0 == strncmp(en_str, languages_en[i], len)) &&
2929
(len == strlen(languages_en[i]))) {
3030
msgid = i;

legacy/firmware/layout2.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2706,7 +2706,7 @@ void layoutDialogAdapterEx(const char *title, const BITMAP *bmp_no,
27062706
if (lines <= 3) {
27072707
y = 17;
27082708
}
2709-
oledDrawStringCenterAdapter(0, y, desc, FONT_STANDARD);
2709+
oledDrawStringCenterAdapter(OLED_WIDTH / 2, y, desc, FONT_STANDARD);
27102710
} else {
27112711
if (line1) lines++;
27122712
if (line2) lines++;

0 commit comments

Comments
 (0)