Skip to content

Commit 7e529ed

Browse files
committed
Merge with latest adafruit/main
2 parents 6c199c5 + b6008d0 commit 7e529ed

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

shared-bindings/displayio/Bitmap.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,7 @@ STATIC mp_obj_t displayio_bitmap_obj_blit(size_t n_args, const mp_obj_t *pos_arg
243243
(y2 < 0) || (y2 > source->height) ) {
244244
mp_raise_ValueError(translate("(x1,y1) or (x2,y2): out of range of source bitmap"));
245245
}
246+
246247
// Ensure x1 < x2 and y1 < y2
247248
if (x1 > x2) {
248249
int16_t temp=x2;
@@ -293,7 +294,11 @@ MP_DEFINE_CONST_FUN_OBJ_2(displayio_bitmap_fill_obj, displayio_bitmap_obj_fill);
293294
STATIC const mp_rom_map_elem_t displayio_bitmap_locals_dict_table[] = {
294295
{ MP_ROM_QSTR(MP_QSTR_height), MP_ROM_PTR(&displayio_bitmap_height_obj) },
295296
{ MP_ROM_QSTR(MP_QSTR_width), MP_ROM_PTR(&displayio_bitmap_width_obj) },
297+
<<<<<<< HEAD
296298
{ MP_ROM_QSTR(MP_QSTR_blit), MP_ROM_PTR(&displayio_bitmap_blit_obj) },
299+
=======
300+
{ MP_ROM_QSTR(MP_QSTR_insert), MP_ROM_PTR(&displayio_bitmap_insert_obj) }, // Added insert function 8/7/2020
301+
>>>>>>> upstream/master
297302
{ MP_ROM_QSTR(MP_QSTR_fill), MP_ROM_PTR(&displayio_bitmap_fill_obj) },
298303

299304
};

shared-module/displayio/Bitmap.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,8 @@ void common_hal_displayio_bitmap_blit(displayio_bitmap_t *self, int16_t x, int16
129129
}
130130
}
131131
}
132-
}
133132

133+
}
134134

135135
void common_hal_displayio_bitmap_set_pixel(displayio_bitmap_t *self, int16_t x, int16_t y, uint32_t value) {
136136
if (self->read_only) {

0 commit comments

Comments
 (0)