summaryrefslogtreecommitdiff
path: root/tools/gbagfx/lz.c
diff options
context:
space:
mode:
authorPikalaxALT <PikalaxALT@users.noreply.github.com>2019-09-03 15:33:11 -0400
committerGitHub <noreply@github.com>2019-09-03 15:33:11 -0400
commit1f4c88c95243e8d75f25d5b7868c837c47aa578d (patch)
tree0ce1dd280b64c7b3677f22a457952746bb1196e9 /tools/gbagfx/lz.c
parent5d30304f4e9ce26d4061cc3697439588126d6bdc (diff)
Copy Berry Fix MB dism from FR (#777)
* Copy Berry Fix MB dism from FR
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;