1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-12-26 09:29:45 +00:00

Improves contended timing.

Still not quite on the money, but this was an overt bug.
This commit is contained in:
Thomas Harte 2021-03-21 00:00:18 -04:00
parent 42bfabbe8c
commit 1b0f45649e

View File

@ -264,7 +264,7 @@ template <VideoTiming timing> class Video {
const int line_position = time_since % timings.cycles_per_line;
if(line_position >= timings.first_border - timings.first_delay) return 0;
return timings.delays[line_position & 7];
return timings.delays[line_position & 15];
}
void set_border_colour(uint8_t colour) {