From 457d7cef5a832d1d2e9fca57821d3ac5cbc51941 Mon Sep 17 00:00:00 2001 From: Daniel Morais Date: Mon, 29 Apr 2024 15:11:29 +0200 Subject: [PATCH] Only LNX/LNS+ have a limitation of 4 lines per page --- lib_nbgl/src/nbgl_fonts.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib_nbgl/src/nbgl_fonts.c b/lib_nbgl/src/nbgl_fonts.c index 7902c96a3..f875dedb1 100644 --- a/lib_nbgl/src/nbgl_fonts.c +++ b/lib_nbgl/src/nbgl_fonts.c @@ -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; @@ -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 {