summaryrefslogtreecommitdiff
path: root/tools/gbagfx/lz.c
diff options
context:
space:
mode:
authorGriffinR <griffin.g.richards@gmail.com>2020-07-14 22:43:57 -0400
committerGitHub <noreply@github.com>2020-07-14 22:43:57 -0400
commitd3bfb6cfc63f9f64295cbd864f98df9cf4c643b4 (patch)
treecd009525bd32ed093138f061a6131001602f5900 /tools/gbagfx/lz.c
parent59ae1cb346c31d604a540bfe70bf843fa8b6334e (diff)
parentfa83439732677fdf36c0bd78af1fa4ea42b68e7d (diff)
Merge pull request #779 from Sierraffinity/master
gbagfx: Various fixes and improvements
Diffstat (limited to 'tools/gbagfx/lz.c')
-rw-r--r--tools/gbagfx/lz.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/tools/gbagfx/lz.c b/tools/gbagfx/lz.c
index c2ba3e327..97434ce50 100644
--- a/tools/gbagfx/lz.c
+++ b/tools/gbagfx/lz.c
@@ -69,10 +69,8 @@ fail:
FATAL_ERROR("Fatal error while decompressing LZ file.\n");
}
-unsigned char *LZCompress(unsigned char *src, int srcSize, int *compressedSize)
+unsigned char *LZCompress(unsigned char *src, int srcSize, int *compressedSize, const int minDistance)
{
- const int minDistance = 2; // for compatibility with LZ77UnCompVram()
-
if (srcSize <= 0)
goto fail;