mirror of
https://github.com/TomHarte/CLK.git
synced 2024-12-28 07:29:45 +00:00
Corrects sequence point generation by allowing for hsync_end != end of line.
This commit is contained in:
parent
5c4623e9f7
commit
65309e60c4
@ -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) {
|
||||
|
@ -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;
|
||||
};
|
||||
|
||||
/*!
|
||||
|
Loading…
Reference in New Issue
Block a user