diff --git a/BinxelviewForm.cs b/BinxelviewForm.cs index eea35d3..1466060 100644 --- a/BinxelviewForm.cs +++ b/BinxelviewForm.cs @@ -34,7 +34,7 @@ enum PaletteMode "Custom", "RGB", "Random", - "Grey", + "Greyscale", "Cubehelix", }; @@ -431,12 +431,15 @@ string parseOption(string optline, string base_path, bool ini_file) } if (opt == "AUTOPAL") { - if (valu == "RGB" ) { palette_mode = PaletteMode.PALETTE_RGB; } - else if (valu == "RANDOM" ) { palette_mode = PaletteMode.PALETTE_RANDOM; } - else if (valu == "GREYSCALE") { palette_mode = PaletteMode.PALETTE_GREY; } - else if (valu == "CUBEHELIX") { palette_mode = PaletteMode.PALETTE_CUBEHELIX; } - else return "Unknown autopal value: "+val; - return ""; + for (int i=1; i