From 80c32ade30ab1aa35355fd3b9d23a297830e5a14 Mon Sep 17 00:00:00 2001 From: Josh Holmer Date: Tue, 24 Sep 2019 11:04:38 -0400 Subject: [PATCH] Disable alpha reduction on all presets --- src/lib.rs | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index f3a403ad..34dd56bb 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -250,13 +250,6 @@ impl Options { } fn apply_preset_4(mut self) -> Self { - self.alphas.insert(AlphaOptim::NoOp); - self.alphas.insert(AlphaOptim::Black); - self.alphas.insert(AlphaOptim::White); - self.alphas.insert(AlphaOptim::Up); - self.alphas.insert(AlphaOptim::Down); - self.alphas.insert(AlphaOptim::Left); - self.alphas.insert(AlphaOptim::Right); self.apply_preset_3() } @@ -287,7 +280,9 @@ impl Default for Options { for i in 0..4 { strategies.insert(i); } - let alphas = HashSet::new(); + // We always need NoOp to be present + let mut alphas = HashSet::new(); + self.alphas.insert(AlphaOptim::NoOp); Options { backup: false,