|
38 | 38 | //| class Group: |
39 | 39 | //| """Manage a group of sprites and groups and how they are inter-related.""" |
40 | 40 | //| |
41 | | -//| def __init__(self, *, max_size: int = 4, scale: int = 1, x: int = 0, y: int = 0) -> None: |
| 41 | +//| def __init__(self, *, scale: int = 1, x: int = 0, y: int = 0) -> None: |
42 | 42 | //| """Create a Group of a given size and scale. Scale is in one dimension. For example, scale=2 |
43 | 43 | //| leads to a layer's pixel being 2x2 pixels when in the group. |
44 | 44 | //| |
45 | | -//| :param int max_size: Ignored. Will be removed in 7.x. |
46 | 45 | //| :param int scale: Scale of layer pixels in one dimension. |
47 | 46 | //| :param int x: Initial x position within the parent. |
48 | 47 | //| :param int y: Initial y position within the parent.""" |
49 | 48 | //| ... |
50 | 49 | //| |
51 | 50 | STATIC mp_obj_t displayio_group_make_new(const mp_obj_type_t *type, size_t n_args, const mp_obj_t *pos_args, mp_map_t *kw_args) { |
52 | | - enum { ARG_max_size, ARG_scale, ARG_x, ARG_y }; |
| 51 | + enum { ARG_scale, ARG_x, ARG_y }; |
53 | 52 | static const mp_arg_t allowed_args[] = { |
54 | | - { MP_QSTR_max_size, MP_ARG_INT | MP_ARG_KW_ONLY, {.u_int = 4} }, |
55 | 53 | { MP_QSTR_scale, MP_ARG_INT | MP_ARG_KW_ONLY, {.u_int = 1} }, |
56 | 54 | { MP_QSTR_x, MP_ARG_INT | MP_ARG_KW_ONLY, {.u_int = 0} }, |
57 | 55 | { MP_QSTR_y, MP_ARG_INT | MP_ARG_KW_ONLY, {.u_int = 0} }, |
|
0 commit comments