Skip to content

Commit 01f8cff

Browse files
committed
Support 32 bit color with vectorio
Fixes #5639
1 parent aee80d6 commit 01f8cff

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

shared-module/vectorio/VectorShape.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -411,6 +411,9 @@ bool vectorio_vector_shape_fill_area(vectorio_vector_shape_t *self, const _displ
411411
if (colorspace->depth == 16) {
412412
VECTORIO_SHAPE_PIXEL_DEBUG(" buffer = %04x 16", output_pixel.pixel);
413413
*(((uint16_t *)buffer) + pixel_index) = output_pixel.pixel;
414+
} else if (colorspace->depth == 32) {
415+
VECTORIO_SHAPE_PIXEL_DEBUG(" buffer = %04x 32", output_pixel.pixel);
416+
*(((uint32_t *)buffer) + pixel_index) = output_pixel.pixel;
414417
} else if (colorspace->depth == 8) {
415418
VECTORIO_SHAPE_PIXEL_DEBUG(" buffer = %02x 8", output_pixel.pixel);
416419
*(((uint8_t *)buffer) + pixel_index) = output_pixel.pixel;

0 commit comments

Comments
 (0)