1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-07-04 18:29:40 +00:00

Corrects sequence point generation by allowing for hsync_end != end of line.

This commit is contained in:
Thomas Harte 2020-01-28 20:38:20 -05:00
parent 5c4623e9f7
commit 65309e60c4
2 changed files with 5 additions and 4 deletions

View File

@ -438,8 +438,9 @@ HalfCycles Video::get_next_sequence_point() {
if(x_ < line_length_.hsync_start + hsync_delay_period) {
event_time = std::min(line_length_.hsync_start + hsync_delay_period, event_time);
}
/* Hereby assumed: hsync end will be communicated at end of line: */
// static_assert(line_length_.hsync_end == hsync_delay_period);
if(x_ < line_length_.hsync_end + hsync_delay_period) {
event_time = std::min(line_length_.hsync_end + hsync_delay_period, event_time);
}
// Also factor in the line length latching time.
if(x_ < line_length_latch_position) {

View File

@ -23,8 +23,8 @@ namespace ST {
struct LineLength {
int length = 1024;
int hsync_start;
int hsync_end;
int hsync_start = 1024;
int hsync_end = 1024;
};
/*!