1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-11-29 12:50:28 +00:00

Merge pull request #927 from TomHarte/SimplifiedTiming

Moves horizontal sync on the 48kb.
This commit is contained in:
Thomas Harte 2021-04-21 19:50:40 -04:00 committed by GitHub
commit 856ebfacca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -103,7 +103,7 @@ template <VideoTiming timing> class Video {
constexpr int sync_line = (timings.interrupt_time / timings.cycles_per_line) + 1; constexpr int sync_line = (timings.interrupt_time / timings.cycles_per_line) + 1;
constexpr int sync_position = 166 * 2; constexpr int sync_position = (timing == VideoTiming::FortyEightK) ? 164 * 2 : 166 * 2;
constexpr int sync_length = 17 * 2; constexpr int sync_length = 17 * 2;
constexpr int burst_position = sync_position + 40; constexpr int burst_position = sync_position + 40;
constexpr int burst_length = 17; constexpr int burst_length = 17;