Skip to content

Commit fdddb54

Browse files
committed
rename call_show to pixelbuf_call_show
1 parent 4e19968 commit fdddb54

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

shared-bindings/_pixelbuf/PixelBuf.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ STATIC mp_obj_t pixelbuf_pixelbuf_obj_set_brightness(mp_obj_t self_in, mp_obj_t
230230
if (self->two_buffers)
231231
pixelbuf_recalculate_brightness(self);
232232
if (self->auto_write)
233-
call_show(self_in);
233+
pixelbuf_call_show(self_in);
234234
return mp_const_none;
235235
}
236236
MP_DEFINE_CONST_FUN_OBJ_2(pixelbuf_pixelbuf_set_brightness_obj, pixelbuf_pixelbuf_obj_set_brightness);
@@ -253,7 +253,7 @@ void pixelbuf_recalculate_brightness(pixelbuf_pixelbuf_obj_t *self) {
253253
}
254254
}
255255

256-
mp_obj_t call_show(mp_obj_t self_in) {
256+
mp_obj_t pixelbuf_call_show(mp_obj_t self_in) {
257257
mp_obj_t dest[2];
258258
mp_load_method(self_in, MP_QSTR_show, dest);
259259
return mp_call_method_n_kw(0, 0, dest);
@@ -412,7 +412,7 @@ STATIC mp_obj_t pixelbuf_pixelbuf_subscr(mp_obj_t self_in, mp_obj_t index_in, mp
412412
}
413413
}
414414
if (self->auto_write)
415-
call_show(self_in);
415+
pixelbuf_call_show(self_in);
416416
return mp_const_none;
417417
#else
418418
return MP_OBJ_NULL; // op not supported
@@ -432,7 +432,7 @@ STATIC mp_obj_t pixelbuf_pixelbuf_subscr(mp_obj_t self_in, mp_obj_t index_in, mp
432432
pixelbuf_set_pixel(self->buf + offset, self->two_buffers ? self->rawbuf + offset : NULL,
433433
self->brightness, value, &self->byteorder, self->byteorder.is_dotstar);
434434
if (self->auto_write)
435-
call_show(self_in);
435+
pixelbuf_call_show(self_in);
436436
return mp_const_none;
437437
}
438438
}

shared-bindings/_pixelbuf/PixelBuf.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,6 @@ typedef struct {
4848
} pixelbuf_pixelbuf_obj_t;
4949

5050
void pixelbuf_recalculate_brightness(pixelbuf_pixelbuf_obj_t *self);
51-
mp_obj_t call_show(mp_obj_t self_in);
51+
mp_obj_t pixelbuf_call_show(mp_obj_t self_in);
5252

5353
#endif // CP_SHARED_BINDINGS_PIXELBUF_PIXELBUF_H

shared-bindings/_pixelbuf/__init__.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ STATIC mp_obj_t pixelbuf_fill(mp_obj_t pixelbuf_in, mp_obj_t value) {
9999
pixelbuf->brightness, value, &pixelbuf->byteorder, pixelbuf->byteorder.is_dotstar);
100100
}
101101
if (pixelbuf->auto_write)
102-
call_show(pixelbuf_in);
102+
pixelbuf_call_show(pixelbuf_in);
103103
return mp_const_none;
104104
}
105105
STATIC MP_DEFINE_CONST_FUN_OBJ_2(pixelbuf_fill_obj, pixelbuf_fill);

0 commit comments

Comments
 (0)