bzResourcesReadBytes(handle, &image, sizeof(image));
size_t compressedSize = chunk.chunkSize - sizeof(ASE_Chunk_Cel_CompressedImage) - sizeof(ASE_Chunk_Cel) - sizeof(ASE_Chunk);
- int8_t *compressedData = bzMemoryAlloc(arena, compressedSize); // If we do this on the stack (alloca) the Playdate will explode!
+ uint8_t *compressedData = bzMemoryAlloc(arena, compressedSize); // If we do this on the stack (alloca) the Playdate will explode!
bzResourcesReadBytes(handle, compressedData, compressedSize);
size_t imagePixelDataSize = image.pixelWidth * image.pixelHeight * pixelDataSize;
- int8_t *imagePixelData = bzMemoryAlloc(arena, imagePixelDataSize);
+ uint8_t *imagePixelData = bzMemoryAlloc(arena, imagePixelDataSize);
stbi_zlib_decode_buffer(imagePixelData, imagePixelDataSize, compressedData, compressedSize);
for (size_t y = 0; y < image.pixelHeight; ++y) {