Skip to content

Commit

Permalink
Only LNX/LNS+ have a limitation of 4 lines per page
Browse files Browse the repository at this point in the history
  • Loading branch information
dmorais-ledger committed Apr 30, 2024
1 parent 2b2a999 commit 457d7ce
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib_nbgl/src/nbgl_fonts.c
Original file line number Diff line number Diff line change
Expand Up @@ -772,10 +772,12 @@ uint16_t nbgl_getTextNbLinesInWidth(nbgl_font_id_e fontId,
if (last_nb_lines < nbLines) {
last_nb_lines = nbLines;
}
#ifndef SCREEN_SIZE_WALLET
if (nbLines == 4) {
++last_nb_pages;
nbLines = 0;
}
#endif // SCREEN_SIZE_WALLET
#endif // BUILD_SCREENSHOTS
}
width = 0;
Expand Down Expand Up @@ -832,10 +834,12 @@ uint16_t nbgl_getTextNbLinesInWidth(nbgl_font_id_e fontId,
if (last_nb_lines < nbLines) {
last_nb_lines = nbLines;
}
#ifndef SCREEN_SIZE_WALLET
if (nbLines == 4) {
++last_nb_pages;
nbLines = 0;
}
#endif // SCREEN_SIZE_WALLET
#endif // BUILD_SCREENSHOTS
}
else {
Expand Down

0 comments on commit 457d7ce

Please sign in to comment.