diff options
| author | yenatch <yenatch@gmail.com> | 2017-07-06 22:12:34 -0400 | 
|---|---|---|
| committer | yenatch <yenatch@gmail.com> | 2017-07-06 22:12:34 -0400 | 
| commit | 3e6d1757d08b75c8f1c3fbad0947b6eeb28622c1 (patch) | |
| tree | 47b13be1e6f70ad406fe5bba890be2e9e82cfd5e /tools/gbagfx | |
| parent | 5db79b8ff4e3d898b7418d4d679cca2dc65a2693 (diff) | |
Fix gbagfx warning
Diffstat (limited to 'tools/gbagfx')
| -rw-r--r-- | tools/gbagfx/main.c | 7 | 
1 files changed, 2 insertions, 5 deletions
| diff --git a/tools/gbagfx/main.c b/tools/gbagfx/main.c index 0624201df..37d3441fe 100644 --- a/tools/gbagfx/main.c +++ b/tools/gbagfx/main.c @@ -59,8 +59,7 @@ void HandleGbaToPngCommand(char *inputPath, char *outputPath, int argc, char **a  {      char *inputFileExtension = GetFileExtension(inputPath);      int bitDepth = inputFileExtension[0] - '0'; -    char *paletteFilePath; -    bool hasPalette = false; +    char *paletteFilePath = NULL;      bool hasTransparency = false;      int width = 1; @@ -76,8 +75,6 @@ void HandleGbaToPngCommand(char *inputPath, char *outputPath, int argc, char **a              i++;              paletteFilePath = argv[i]; - -            hasPalette = true;          }          else if (strcmp(option, "-object") == 0)          { @@ -102,7 +99,7 @@ void HandleGbaToPngCommand(char *inputPath, char *outputPath, int argc, char **a          }      } -    ConvertGbaToPng(inputPath, outputPath, width, bitDepth, hasPalette ? paletteFilePath : NULL, hasTransparency); +    ConvertGbaToPng(inputPath, outputPath, width, bitDepth, paletteFilePath, hasTransparency);  }  void HandlePngToGbaCommand(char *inputPath, char *outputPath, int argc, char **argv) | 
