X-Git-Url: https://git.bts.cx/benzene.git/blobdiff_plain/a2fade1d5540d1017c26fd2d2f7733915088ff94..76064b2ae48e49da4341490dd00f8977ea540fd8:/src/bz/gfx/aseprite.c?ds=sidebyside diff --git a/src/bz/gfx/aseprite.c b/src/bz/gfx/aseprite.c index b2a829f..2581206 100644 --- a/src/bz/gfx/aseprite.c +++ b/src/bz/gfx/aseprite.c @@ -405,11 +405,11 @@ static void renderChunkCel(uint8_t *outData, ASE_SHORT *zBuffer, BZMemoryArenaID 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) {