Skip to content

Commit c831795

Browse files
committed
fixed setting iteration
1 parent 1e9e201 commit c831795

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/main.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,7 @@ impl<'a> Widget<FractalData> for FractalWidget<'a> {
212212
zoom.reduce();
213213

214214
let mut location = renderer.center_reference.c.clone();
215+
215216
let precision = location.real().prec();
216217

217218
let temp = FloatArbitrary::with_val(precision, element.exponent).exp2();
@@ -874,7 +875,7 @@ impl<'a> Widget<FractalData> for FractalWidget<'a> {
874875
}
875876

876877
if command.is(RESET_RENDERER_FAST) {
877-
// renderer.maximum_iteration = renderer.data_export.lock().maximum_iteration;
878+
renderer.maximum_iteration = settings.get_int("iterations").unwrap() as usize;
878879

879880
if data.need_full_rerender {
880881
// println!("needs full rerender");
@@ -1349,7 +1350,7 @@ pub fn main() {
13491350
settings.merge(File::with_name("start.toml")).unwrap();
13501351

13511352
if settings.get_bool("show_output").unwrap() {
1352-
println!("{:<15}| {:<15}| {:<15}| {:<6}| {:<15}| {:<15}| {:<15}| {:<6}| {:<15}", "Zoom", "Approx [ms]", "Skipped [it]", "Order", "Maximum [it]", "Iteration [ms]", "Correct [ms]", "Ref", "Frame [ms]");
1353+
println!(" {:<15}| {:<15}| {:<15}| {:<6}| {:<15}| {:<15}| {:<15}| {:<6}| {:<15}", "Zoom", "Approx [ms]", "Skipped [it]", "Order", "Maximum [it]", "Iteration [ms]", "Correct [ms]", "Ref", "Frame [ms]");
13531354
};
13541355

13551356
let shared_settings = Arc::new(Mutex::new(settings.clone()));

0 commit comments

Comments
 (0)