mirror of
https://github.com/TomHarte/CLK.git
synced 2024-12-27 01:31:42 +00:00
Improves contended timing.
Still not quite on the money, but this was an overt bug.
This commit is contained in:
parent
42bfabbe8c
commit
1b0f45649e
@ -264,7 +264,7 @@ template <VideoTiming timing> class Video {
|
|||||||
const int line_position = time_since % timings.cycles_per_line;
|
const int line_position = time_since % timings.cycles_per_line;
|
||||||
if(line_position >= timings.first_border - timings.first_delay) return 0;
|
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) {
|
void set_border_colour(uint8_t colour) {
|
||||||
|
Loading…
Reference in New Issue
Block a user