1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-10-04 01:57:54 +00:00

Shunts vsync back down to top of frame.

It's guess after guess, basically.
This commit is contained in:
Thomas Harte 2019-12-30 23:01:31 -05:00
parent 8e777c299f
commit 0a12893d63

View File

@ -267,11 +267,10 @@ void Video::advance(HalfCycles duration) {
next_vertical_.enable = true; next_vertical_.enable = true;
} else if(y_ == vertical_timings.reset_enable) { } else if(y_ == vertical_timings.reset_enable) {
next_vertical_.enable = false; next_vertical_.enable = false;
} else if(next_y_ == vertical_timings.height - 2) {
next_vertical_.sync_schedule = VerticalState::SyncSchedule::Begin;
} else if(next_y_ == vertical_timings.height) { } else if(next_y_ == vertical_timings.height) {
next_vertical_.sync_schedule = VerticalState::SyncSchedule::Begin;
next_y_ = 0; next_y_ = 0;
} else if(y_ == 0) { } else if(next_y_ == 2) {
next_vertical_.sync_schedule = VerticalState::SyncSchedule::End; next_vertical_.sync_schedule = VerticalState::SyncSchedule::End;
} }
} }