Disable alpha reduction on all presets
This commit is contained in:
parent
b808239c89
commit
80c32ade30
1 changed files with 3 additions and 8 deletions
11
src/lib.rs
11
src/lib.rs
|
|
@ -250,13 +250,6 @@ impl Options {
|
||||||
}
|
}
|
||||||
|
|
||||||
fn apply_preset_4(mut self) -> Self {
|
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()
|
self.apply_preset_3()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -287,7 +280,9 @@ impl Default for Options {
|
||||||
for i in 0..4 {
|
for i in 0..4 {
|
||||||
strategies.insert(i);
|
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 {
|
Options {
|
||||||
backup: false,
|
backup: false,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue