Skip to content

Commit 80bb5a7

Browse files
author
Jamie C. Driver
committed
ui: make address display grid 4x6 (rather than 5x5)
1 parent 72296de commit 80bb5a7

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

main/ui/confirm_address.c

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,16 @@
66
#define ADDRESS_STRING_GRID (CONFIG_DISPLAY_WIDTH >= 320)
77

88
// Max amount of address we can show on a single screen
9-
#define MAX_DISPLAY_ADDRESS_LEN (ADDRESS_STRING_GRID ? 100 : 96)
9+
#define MAX_DISPLAY_ADDRESS_LEN 96
1010
#define MAX_ADDRESS_SCREENS 2
1111

1212
#if ADDRESS_STRING_GRID
13-
13+
// Target 4 characters per cell
1414
#define ADDR_GRID_FONT GUI_DEFAULT_FONT
15-
#define ADDR_GRID_TOPPAD 12
16-
#define ADDR_GRID_X 5
17-
#define ADDR_GRID_Y 5
15+
#define ADDR_GRID_TOPPAD 4
16+
#define ADDR_GRID_X 4
17+
#define ADDR_GRID_Y 6
18+
1819
#define ADDR_GRID_SIZE (ADDR_GRID_X * ADDR_GRID_Y)
1920
#define ADDR_TEXTSPLITLEN (MAX_DISPLAY_ADDRESS_LEN / ADDR_GRID_SIZE)
2021

0 commit comments

Comments
 (0)