1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-09-30 22:56:03 +00:00

Eliminate magic constants.

This commit is contained in:
Thomas Harte 2020-11-23 18:36:44 -05:00
parent 9e0e063f8a
commit d2938ad7c8

View File

@ -156,7 +156,7 @@ Cycles VideoBase::get_next_sequence_point() const {
const int cycles_into_row = cycles_into_frame_ % CyclesPerLine;
const int row = cycles_into_frame_ / CyclesPerLine;
constexpr int sequence_point_offset = (5 + 8) * CyclesPerTick;
constexpr int sequence_point_offset = (blank_ticks + left_border_ticks) * CyclesPerTick;
// Handle every case that doesn't involve wrapping to the next row 0.
if(row <= 200) {