@@ -218,7 +218,7 @@ bool keyboardSwipeCallback(nbgl_obj_t *obj, nbgl_touchType_t eventType)
218
218
if (i < (uint32_t ) nbActiveButtons ) {
219
219
if (updateSuggestionButtons (suggestionsContainer , eventType , i )) {
220
220
io_seproxyhal_play_tune (TUNE_TAP_CASUAL );
221
- nbgl_redrawObject ((nbgl_obj_t * ) suggestionsContainer , NULL , false );
221
+ nbgl_objDraw ((nbgl_obj_t * ) suggestionsContainer );
222
222
nbgl_refreshSpecial (FULL_COLOR_PARTIAL_REFRESH );
223
223
}
224
224
@@ -565,7 +565,7 @@ int nbgl_layoutUpdateKeyboard(nbgl_layout_t *layout,
565
565
keyboard -> casing = casing ;
566
566
}
567
567
568
- nbgl_redrawObject ((nbgl_obj_t * ) keyboard , NULL , false );
568
+ nbgl_objDraw ((nbgl_obj_t * ) keyboard );
569
569
570
570
return 0 ;
571
571
}
@@ -728,7 +728,7 @@ int nbgl_layoutUpdateSuggestionButtons(nbgl_layout_t *layout,
728
728
updateSuggestionButtons (container , 0 , 0 );
729
729
#endif // TARGET_STAX
730
730
731
- nbgl_redrawObject ((nbgl_obj_t * ) container , NULL , false );
731
+ nbgl_objDraw ((nbgl_obj_t * ) container );
732
732
733
733
return 0 ;
734
734
}
@@ -848,15 +848,15 @@ int nbgl_layoutUpdateEnteredText(nbgl_layout_t *layout,
848
848
textArea -> text = text ;
849
849
textArea -> textColor = grayedOut ? LIGHT_GRAY : BLACK ;
850
850
textArea -> textAlignment = MID_LEFT ;
851
- nbgl_redrawObject ((nbgl_obj_t * ) textArea , NULL , false );
851
+ nbgl_objDraw ((nbgl_obj_t * ) textArea );
852
852
853
853
// update number text area
854
854
if (numbered ) {
855
855
// it is the previously created object
856
856
textArea = (nbgl_text_area_t * ) layoutInt -> container -> children [1 ];
857
857
snprintf (numText , sizeof (numText ), "%d." , number );
858
858
textArea -> text = numText ;
859
- nbgl_redrawObject ((nbgl_obj_t * ) textArea , NULL , false );
859
+ nbgl_objDraw ((nbgl_obj_t * ) textArea );
860
860
}
861
861
// if the text doesn't fit, indicate it by returning 1 instead of 0, for different refresh
862
862
if (nbgl_getSingleLineTextWidth (textArea -> fontId , text ) > textArea -> obj .area .width ) {
@@ -950,7 +950,7 @@ int nbgl_layoutUpdateConfirmationButton(nbgl_layout_t *layout,
950
950
button -> borderColor = LIGHT_GRAY ;
951
951
button -> innerColor = LIGHT_GRAY ;
952
952
}
953
- nbgl_redrawObject ((nbgl_obj_t * ) button , NULL , false );
953
+ nbgl_objDraw ((nbgl_obj_t * ) button );
954
954
return 0 ;
955
955
}
956
956
@@ -1054,14 +1054,14 @@ int nbgl_layoutUpdateKeyboardContent(nbgl_layout_t *layout, nbgl_layoutKeyboardC
1054
1054
// get Word number typed text
1055
1055
textArea = (nbgl_text_area_t * ) container -> children [1 ];
1056
1056
snprintf (numText , sizeof (numText ), "%d." , content -> number );
1057
- nbgl_redrawObject ((nbgl_obj_t * ) textArea , NULL , false );
1057
+ nbgl_objDraw ((nbgl_obj_t * ) textArea );
1058
1058
}
1059
1059
1060
1060
// get text area for entered text
1061
1061
textArea = (nbgl_text_area_t * ) container -> children [2 ];
1062
1062
textArea -> textColor = content -> grayedOut ? LIGHT_GRAY : BLACK ;
1063
1063
textArea -> text = content -> text ;
1064
- nbgl_redrawObject ((nbgl_obj_t * ) textArea , NULL , false );
1064
+ nbgl_objDraw ((nbgl_obj_t * ) textArea );
1065
1065
1066
1066
if (content -> type == KEYBOARD_WITH_SUGGESTIONS ) {
1067
1067
nbActiveButtons = content -> suggestionButtons .nbUsedButtons ;
@@ -1091,7 +1091,7 @@ int nbgl_layoutUpdateKeyboardContent(nbgl_layout_t *layout, nbgl_layoutKeyboardC
1091
1091
indicator -> activePage = 0 ;
1092
1092
updateSuggestionButtons (suggestionsContainer , 0 , 0 );
1093
1093
1094
- nbgl_redrawObject ((nbgl_obj_t * ) suggestionsContainer , NULL , false );
1094
+ nbgl_objDraw ((nbgl_obj_t * ) suggestionsContainer );
1095
1095
}
1096
1096
else if (content -> type == KEYBOARD_WITH_BUTTON ) {
1097
1097
// update main text area
@@ -1111,7 +1111,7 @@ int nbgl_layoutUpdateKeyboardContent(nbgl_layout_t *layout, nbgl_layoutKeyboardC
1111
1111
button -> borderColor = LIGHT_GRAY ;
1112
1112
button -> innerColor = LIGHT_GRAY ;
1113
1113
}
1114
- nbgl_redrawObject ((nbgl_obj_t * ) button , NULL , false );
1114
+ nbgl_objDraw ((nbgl_obj_t * ) button );
1115
1115
}
1116
1116
1117
1117
// if the entered text doesn't fit, indicate it by returning 1 instead of 0, for different
0 commit comments