core/extmod: fix build of modtrezorui when TREZOR_MODEL is set to '1'

pull/975/head
Pavol Rusnak 4 years ago
parent d7d5579eae
commit 25cc836660
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D

@ -242,3 +242,5 @@ void display_refresh(void) {
}
const char *display_save(const char *prefix) { return NULL; }
void display_clear_save(void) {}

@ -696,9 +696,9 @@ int display_text_width(const char *text, int textlen, int font) {
// the requested width. Tries to avoid breaking words if possible.
int display_text_split(const char *text, int textlen, int font,
int requested_width) {
#if TREZOR_MODEL == T
int width = 0;
int lastspace = 0;
#if TREZOR_MODEL == T
// determine text length if not provided
if (textlen < 0) {
textlen = strlen(text);

Loading…
Cancel
Save