File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -157,7 +157,7 @@ STATIC mp_obj_t ugfx_string(mp_uint_t n_args, const mp_obj_t *args) {
157
157
// extract arguments
158
158
// ugfx_obj_t *self = args[0];
159
159
mp_uint_t len ;
160
- const uint16_t data = mp_obj_get_int (args [2 ]);
160
+ const uint16_t data = mp_obj_str_get_data (args [2 ]);
161
161
int x0 = mp_obj_get_int (args [0 ]);
162
162
int y0 = mp_obj_get_int (args [1 ]);
163
163
int col = mp_obj_get_int (args [4 ]);
@@ -631,7 +631,7 @@ STATIC const mp_rom_map_elem_t ugfx_module_globals_table[] = {
631
631
(mp_obj_t )& ugfx_get_string_width_obj },
632
632
{MP_OBJ_NEW_QSTR (MP_QSTR_get_char_width ),
633
633
(mp_obj_t )& ugfx_get_char_width_obj },
634
- {MP_OBJ_NEW_QSTR (MP_QSTR_schar ), (mp_obj_t )& ugfx_char_obj },
634
+ {MP_OBJ_NEW_QSTR (MP_QSTR_char ), (mp_obj_t )& ugfx_char_obj },
635
635
{MP_OBJ_NEW_QSTR (MP_QSTR_string ), (mp_obj_t )& ugfx_string_obj },
636
636
{MP_OBJ_NEW_QSTR (MP_QSTR_string_box ), (mp_obj_t )& ugfx_string_box_obj },
637
637
You can’t perform that action at this time.
0 commit comments