mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-23 14:58:09 +00:00
core/extmod: fix build of modtrezorui when TREZOR_MODEL is set to '1'
This commit is contained in:
parent
d7d5579eae
commit
25cc836660
@ -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…
Reference in New Issue
Block a user