@@ -263,9 +263,9 @@ void common_hal_bitmaptools_boundary_fill(displayio_bitmap_t *destination,
263
263
// first point is the one user passed in
264
264
mp_obj_t point [] = { mp_obj_new_int (x ), mp_obj_new_int (y ) };
265
265
mp_obj_list_append (
266
- fill_area ,
267
- mp_obj_new_tuple (2 , point )
268
- );
266
+ fill_area ,
267
+ mp_obj_new_tuple (2 , point )
268
+ );
269
269
270
270
mp_obj_t * fill_points ;
271
271
size_t list_length = 0 ;
@@ -278,7 +278,7 @@ void common_hal_bitmaptools_boundary_fill(displayio_bitmap_t *destination,
278
278
mp_obj_t * tuple_items ;
279
279
280
280
// while there are still points to check
281
- while (list_length > 0 ){
281
+ while (list_length > 0 ) {
282
282
mp_obj_list_get (fill_area , & list_length , & fill_points );
283
283
current_point = mp_obj_list_pop (fill_area , 0 );
284
284
mp_obj_tuple_get (current_point , & tuple_len , & tuple_items );
@@ -288,7 +288,7 @@ void common_hal_bitmaptools_boundary_fill(displayio_bitmap_t *destination,
288
288
mp_obj_get_int (tuple_items [1 ]));
289
289
290
290
// if the current point is not background color ignore it
291
- if (current_point_color_value != background_value ){
291
+ if (current_point_color_value != background_value ) {
292
292
mp_obj_list_get (fill_area , & list_length , & fill_points );
293
293
continue ;
294
294
}
@@ -303,28 +303,32 @@ void common_hal_bitmaptools_boundary_fill(displayio_bitmap_t *destination,
303
303
// add all 4 surrounding points to the list to check
304
304
mp_obj_t above_point [] = {
305
305
tuple_items [0 ],
306
- MP_OBJ_NEW_SMALL_INT (mp_obj_int_get_checked (tuple_items [1 ])- 1 )};
306
+ MP_OBJ_NEW_SMALL_INT (mp_obj_int_get_checked (tuple_items [1 ]) - 1 )
307
+ };
307
308
mp_obj_list_append (
308
309
fill_area ,
309
310
mp_obj_new_tuple (2 , above_point ));
310
311
311
312
mp_obj_t left_point [] = {
312
- MP_OBJ_NEW_SMALL_INT (mp_obj_int_get_checked (tuple_items [0 ])- 1 ),
313
- tuple_items [1 ]};
313
+ MP_OBJ_NEW_SMALL_INT (mp_obj_int_get_checked (tuple_items [0 ]) - 1 ),
314
+ tuple_items [1 ]
315
+ };
314
316
mp_obj_list_append (
315
317
fill_area ,
316
318
mp_obj_new_tuple (2 , left_point ));
317
319
318
320
mp_obj_t right_point [] = {
319
- MP_OBJ_NEW_SMALL_INT (mp_obj_int_get_checked (tuple_items [0 ])+ 1 ),
320
- tuple_items [1 ]};
321
+ MP_OBJ_NEW_SMALL_INT (mp_obj_int_get_checked (tuple_items [0 ]) + 1 ),
322
+ tuple_items [1 ]
323
+ };
321
324
mp_obj_list_append (
322
325
fill_area ,
323
326
mp_obj_new_tuple (2 , right_point ));
324
327
325
328
mp_obj_t below_point [] = {
326
329
tuple_items [0 ],
327
- MP_OBJ_NEW_SMALL_INT (mp_obj_int_get_checked (tuple_items [1 ])+ 1 )};
330
+ MP_OBJ_NEW_SMALL_INT (mp_obj_int_get_checked (tuple_items [1 ]) + 1 )
331
+ };
328
332
mp_obj_list_append (
329
333
fill_area ,
330
334
mp_obj_new_tuple (2 , below_point ));
0 commit comments