Skip to content

Commit ef2a890

Browse files
committed
move call to show outside loop
1 parent cc31f2d commit ef2a890

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

shared-bindings/_pixelbuf/PixelBuf.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -352,9 +352,9 @@ STATIC mp_obj_t pixelbuf_pixelbuf_fill(mp_obj_t self_in, mp_obj_t value) {
352352
for (size_t offset = 0; offset < self->bytes; offset+= self->pixel_step) {
353353
pixelbuf_set_pixel(self->buf + offset, self->two_buffers ? (self->rawbuf + offset) : NULL,
354354
self->brightness, value, &self->byteorder, self->byteorder.is_dotstar);
355-
if (self->auto_write)
356-
call_show(self_in);
357355
}
356+
if (self->auto_write)
357+
call_show(self_in);
358358
return mp_const_none;
359359
}
360360
STATIC MP_DEFINE_CONST_FUN_OBJ_2(pixelbuf_pixelbuf_fill_obj, pixelbuf_pixelbuf_fill);

0 commit comments

Comments
 (0)