fix resolution_helper

This commit is contained in:
Simon Gardling
2022-03-23 23:22:10 -04:00
parent 3b4ccd52a5
commit 26000b06c8
2 changed files with 2 additions and 2 deletions

View File

@@ -168,7 +168,7 @@ impl FunctionEntry {
width_changed: bool, settings: AppSettings,
) -> f64 {
let resolution: f64 = pixel_width as f64 / (max_x.abs() + min_x.abs());
let resolution_iter = resolution_helper(pixel_width, min_x, resolution);
let resolution_iter = resolution_helper(pixel_width + 1, min_x, resolution);
// Makes sure proper arguments are passed when integral is enabled
if self.integral && settings.integral_changed {