Skip to content

Commit 3020893

Browse files
committed
Tweak to try to reduce low space builds
1 parent 2c1e206 commit 3020893

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

shared-module/displayio/Bitmap.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,10 @@ void common_hal_displayio_bitmap_construct_from_buffer(displayio_bitmap_t *self,
4949
self->width = width;
5050
self->height = height;
5151
self->stride = stride(width, bits_per_value);
52+
self->data_alloc = false;
5253
if (!data) {
5354
data = m_malloc(self->stride * height * sizeof(uint32_t), false);
5455
self->data_alloc = true;
55-
} else {
56-
self->data_alloc = false;
5756
}
5857
self->data = data;
5958
self->read_only = read_only;

0 commit comments

Comments
 (0)