1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-06-25 18:30:07 +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.

View File

@ -11,6 +11,10 @@
#include <cassert>
#include <cstring>
#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() {

View File

@ -19,9 +19,6 @@
#include <vector>
#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 {