From 8557a5bd84199e000a5ba1fd87b631a109629c0c Mon Sep 17 00:00:00 2001 From: MDHEXT <42657178+MDHEXT@users.noreply.github.com> Date: Sun, 30 Jan 2022 18:05:42 -0700 Subject: [PATCH] Fix No Dither --- gifconv.bat | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/gifconv.bat b/gifconv.bat index 61e1db6..970e9b7 100644 --- a/gifconv.bat +++ b/gifconv.bat @@ -220,14 +220,12 @@ IF %dither% EQU 2 SET ditheralg=heckbert IF %dither% EQU 3 SET ditheralg=floyd_steinberg IF %dither% EQU 4 SET ditheralg=sierra2 IF %dither% EQU 5 SET ditheralg=sierra2_4a -IF %dither% EQU 6 SET "ditherenc=" +IF %dither% EQU 6 SET "ditheralg=none" -IF %dither% LEQ 5 ( - IF NOT %mode% EQU 2 ( - IF DEFINED errorswitch SET ditherenc=:dither=!ditheralg! - IF NOT DEFINED errorswitch SET ditherenc==dither=!ditheralg! - )else SET ditherenc=:dither=!ditheralg! -) +IF NOT %mode% EQU 2 ( + IF DEFINED errorswitch SET ditherenc=:dither=!ditheralg! + IF NOT DEFINED errorswitch SET ditherenc==dither=!ditheralg! +)else SET ditherenc=:dither=!ditheralg! :: Setting variables to put the command together; checking for Error Diffusion if using Bayer Scale and adjusting the command accordingly IF NOT DEFINED bayerscale SET "bayer="