]> git.bts.cx Git - benzene.git/blobdiff - src/bz/gfx/aseprite.c
Updates for bindings
[benzene.git] / src / bz / gfx / aseprite.c
index b2a829ff0bdbf442333ed4bd96186bf1b2f51058..2581206f0790bec8c768db3e24bf9db449083f29 100644 (file)
@@ -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);
                                        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;
                                        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) {
                                        stbi_zlib_decode_buffer(imagePixelData, imagePixelDataSize, compressedData, compressedSize);
 
                                        for (size_t y = 0; y < image.pixelHeight; ++y) {