We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 88f6117 commit 8a9d78aCopy full SHA for 8a9d78a
shared-module/tilepalettemapper/TilePaletteMapper.c
@@ -18,7 +18,7 @@ void common_hal_tilepalettemapper_tilepalettemapper_construct(tilepalettemapper_
18
self->input_color_count = input_color_count;
19
self->needs_refresh = false;
20
int mappings_len = width * height;
21
- self->tile_mappings = (uint32_t **)m_malloc_without_collect(mappings_len * sizeof(uint32_t *));
+ self->tile_mappings = (uint32_t **)m_malloc(mappings_len * sizeof(uint32_t *));
22
for (int i = 0; i < mappings_len; i++) {
23
self->tile_mappings[i] = (uint32_t *)m_malloc_without_collect(input_color_count * sizeof(uint32_t));
24
if (mp_obj_is_type(self->pixel_shader, &displayio_palette_type)) {
0 commit comments