From 1b0f45649ee79ee4f72a55b0f12482ef61504b04 Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Sun, 21 Mar 2021 00:00:18 -0400 Subject: [PATCH] Improves contended timing. Still not quite on the money, but this was an overt bug. --- Machines/Sinclair/ZXSpectrum/Video.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Machines/Sinclair/ZXSpectrum/Video.hpp b/Machines/Sinclair/ZXSpectrum/Video.hpp index 29368bc81..86921fa71 100644 --- a/Machines/Sinclair/ZXSpectrum/Video.hpp +++ b/Machines/Sinclair/ZXSpectrum/Video.hpp @@ -264,7 +264,7 @@ template 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) {