Update step needs a lower bound

This commit is contained in:
Sebastian 2022-02-13 16:18:04 +01:00 committed by Sebastian
parent a5c4d930ac
commit b095515238
1 changed files with 5 additions and 1 deletions

View File

@ -175,7 +175,11 @@ where
}
let line_count = pixel_count / PIXELS_PER_LINE;
update_step = line_count / update_steps;
update_step = if line_count / update_steps > 4 {
line_count / update_steps
} else {
4
}
}
}