code format and translations

This commit is contained in:
foamyguy 2021-08-13 10:13:38 -05:00
parent c1e164e1ff
commit ec8b31e7b4
2 changed files with 24 additions and 11 deletions

View File

@ -2566,6 +2566,10 @@ msgstr ""
msgid "axis too long" msgid "axis too long"
msgstr "" msgstr ""
#: shared-bindings/bitmaptools/__init__.c
msgid "background value out of range of target"
msgstr ""
#: py/builtinevex.c #: py/builtinevex.c
msgid "bad compile mode" msgid "bad compile mode"
msgstr "" msgstr ""
@ -3917,6 +3921,7 @@ msgstr ""
#: ports/esp32s2/boards/gravitech_cucumber_rs/mpconfigboard.h #: ports/esp32s2/boards/gravitech_cucumber_rs/mpconfigboard.h
#: ports/esp32s2/boards/lilygo_ttgo_t8_s2_st7789/mpconfigboard.h #: ports/esp32s2/boards/lilygo_ttgo_t8_s2_st7789/mpconfigboard.h
#: ports/esp32s2/boards/microdev_micro_s2/mpconfigboard.h #: ports/esp32s2/boards/microdev_micro_s2/mpconfigboard.h
#: ports/esp32s2/boards/morpheans_morphesp-240/mpconfigboard.h
#: ports/esp32s2/boards/muselab_nanoesp32_s2_wroom/mpconfigboard.h #: ports/esp32s2/boards/muselab_nanoesp32_s2_wroom/mpconfigboard.h
#: ports/esp32s2/boards/muselab_nanoesp32_s2_wrover/mpconfigboard.h #: ports/esp32s2/boards/muselab_nanoesp32_s2_wrover/mpconfigboard.h
#: ports/esp32s2/boards/targett_module_clip_wroom/mpconfigboard.h #: ports/esp32s2/boards/targett_module_clip_wroom/mpconfigboard.h
@ -4358,6 +4363,10 @@ msgstr ""
msgid "value must fit in %d byte(s)" msgid "value must fit in %d byte(s)"
msgstr "" msgstr ""
#: shared-bindings/bitmaptools/__init__.c
msgid "value out of range of target"
msgstr ""
#: shared-bindings/displayio/Bitmap.c #: shared-bindings/displayio/Bitmap.c
msgid "value_count must be > 0" msgid "value_count must be > 0"
msgstr "" msgstr ""

View File

@ -303,28 +303,32 @@ void common_hal_bitmaptools_boundary_fill(displayio_bitmap_t *destination,
// add all 4 surrounding points to the list to check // add all 4 surrounding points to the list to check
mp_obj_t above_point[] = { mp_obj_t above_point[] = {
tuple_items[0], tuple_items[0],
MP_OBJ_NEW_SMALL_INT(mp_obj_int_get_checked(tuple_items[1])-1)}; MP_OBJ_NEW_SMALL_INT(mp_obj_int_get_checked(tuple_items[1]) - 1)
};
mp_obj_list_append( mp_obj_list_append(
fill_area, fill_area,
mp_obj_new_tuple(2, above_point)); mp_obj_new_tuple(2, above_point));
mp_obj_t left_point[] = { mp_obj_t left_point[] = {
MP_OBJ_NEW_SMALL_INT(mp_obj_int_get_checked(tuple_items[0]) - 1), MP_OBJ_NEW_SMALL_INT(mp_obj_int_get_checked(tuple_items[0]) - 1),
tuple_items[1]}; tuple_items[1]
};
mp_obj_list_append( mp_obj_list_append(
fill_area, fill_area,
mp_obj_new_tuple(2, left_point)); mp_obj_new_tuple(2, left_point));
mp_obj_t right_point[] = { mp_obj_t right_point[] = {
MP_OBJ_NEW_SMALL_INT(mp_obj_int_get_checked(tuple_items[0]) + 1), MP_OBJ_NEW_SMALL_INT(mp_obj_int_get_checked(tuple_items[0]) + 1),
tuple_items[1]}; tuple_items[1]
};
mp_obj_list_append( mp_obj_list_append(
fill_area, fill_area,
mp_obj_new_tuple(2, right_point)); mp_obj_new_tuple(2, right_point));
mp_obj_t below_point[] = { mp_obj_t below_point[] = {
tuple_items[0], tuple_items[0],
MP_OBJ_NEW_SMALL_INT(mp_obj_int_get_checked(tuple_items[1])+1)}; MP_OBJ_NEW_SMALL_INT(mp_obj_int_get_checked(tuple_items[1]) + 1)
};
mp_obj_list_append( mp_obj_list_append(
fill_area, fill_area,
mp_obj_new_tuple(2, below_point)); mp_obj_new_tuple(2, below_point));