From 1c3c0b7b25dd34adfe99eda2c85ec996b84748eb Mon Sep 17 00:00:00 2001 From: Kamal Ahmad Date: Thu, 1 Aug 2019 22:26:10 +0500 Subject: [PATCH] Re-add alpha Black/Noop optimizations to presets --- src/lib.rs | 2 ++ src/main.rs | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index 0ca5189b..f3a403ad 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -250,6 +250,8 @@ 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); diff --git a/src/main.rs b/src/main.rs index a83ea18c..87fd2d8c 100644 --- a/src/main.rs +++ b/src/main.rs @@ -363,6 +363,8 @@ fn parse_opts_into_struct( }; if matches.is_present("alpha") { + opts.alphas.insert(AlphaOptim::NoOp); + opts.alphas.insert(AlphaOptim::Black); opts.alphas.insert(AlphaOptim::White); opts.alphas.insert(AlphaOptim::Up); opts.alphas.insert(AlphaOptim::Down);