1
0
mirror of https://github.com/TomHarte/CLK.git synced 2025-08-05 08:26:28 +00:00

Localises three of the four macros.

This commit is contained in:
Thomas Harte
2020-07-26 17:54:33 -04:00
parent 8bef7ff4c5
commit bc6426313e
3 changed files with 5 additions and 6 deletions

View File

@@ -189,10 +189,8 @@ void ScanTarget::update(int, int output_height) {
modals_are_dirty_ = false;
}
// Determine the start time of this submission group.
// Determine the start time of this submission group and the number of lines it will contain.
line_submission_begin_time_ = std::chrono::high_resolution_clock::now();
// Determine how many lines are about to be submitted.
lines_submitted_ = (area.end.line - area.start.line + line_buffer_.size()) % line_buffer_.size();
// Submit scans; only the new ones need to be communicated.