Skip to content

Commit 7740cba

Browse files
committed
do background tasks and handle interrupt during boundary fill
1 parent 4e169bb commit 7740cba

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

shared-module/bitmaptools/__init__.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
* THE SOFTWARE.
2525
*/
2626

27+
#include "shared/runtime/interrupt_char.h"
2728
#include "shared-bindings/bitmaptools/__init__.h"
2829
#include "shared-bindings/displayio/Bitmap.h"
2930
#include "shared-bindings/displayio/Palette.h"
@@ -376,6 +377,10 @@ void common_hal_bitmaptools_boundary_fill(displayio_bitmap_t *destination,
376377
}
377378

378379
mp_obj_list_get(fill_area, &list_length, &fill_points);
380+
RUN_BACKGROUND_TASKS;
381+
if (mp_hal_is_interrupted()) {
382+
return;
383+
}
379384
}
380385

381386
// set dirty the area so displayio will draw

0 commit comments

Comments
 (0)