diff --git a/Outputs/OpenGL/ScanTarget.cpp b/Outputs/OpenGL/ScanTarget.cpp index 638fc739f..6913cec15 100644 --- a/Outputs/OpenGL/ScanTarget.cpp +++ b/Outputs/OpenGL/ScanTarget.cpp @@ -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. diff --git a/Outputs/ScanTargets/BufferingScanTarget.cpp b/Outputs/ScanTargets/BufferingScanTarget.cpp index 1d2d4c009..34800005e 100644 --- a/Outputs/ScanTargets/BufferingScanTarget.cpp +++ b/Outputs/ScanTargets/BufferingScanTarget.cpp @@ -11,6 +11,10 @@ #include #include +#define TextureAddressGetY(v) uint16_t((v) >> 11) +#define TextureAddressGetX(v) uint16_t((v) & 0x7ff) +#define TextureSub(a, b) (((a) - (b)) & 0x3fffff) + using namespace Outputs::Display; BufferingScanTarget::BufferingScanTarget() { diff --git a/Outputs/ScanTargets/BufferingScanTarget.hpp b/Outputs/ScanTargets/BufferingScanTarget.hpp index bb80dd179..d2715af4e 100644 --- a/Outputs/ScanTargets/BufferingScanTarget.hpp +++ b/Outputs/ScanTargets/BufferingScanTarget.hpp @@ -19,9 +19,6 @@ #include #define TextureAddress(x, y) (((y) << 11) | (x)) -#define TextureAddressGetY(v) uint16_t((v) >> 11) -#define TextureAddressGetX(v) uint16_t((v) & 0x7ff) -#define TextureSub(a, b) (((a) - (b)) & 0x3fffff) namespace Outputs { namespace Display {