1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-11-21 21:33:54 +00:00

Fix non-interlaced frame length.

This commit is contained in:
Thomas Harte 2024-10-07 21:50:56 -04:00
parent 2d90868f5c
commit 43ac20cbd2

View File

@ -262,8 +262,9 @@ template <class BusHandlerT, Personality personality, CursorType cursor_type> cl
}
if(character_reset_history_ & 4 && eom_latched_) {
is_in_adjustment_period_ |= adjustment_counter_ != (layout_.vertical.adjust + (odd_field_ ? 1 : 0));
eof_latched_ |= adjustment_counter_ == layout_.vertical.adjust;
const auto adjust_length = layout_.vertical.adjust + (layout_.interlace_mode_ != InterlaceMode::Off && odd_field_ ? 1 : 0);
is_in_adjustment_period_ |= adjustment_counter_ != adjust_length;
eof_latched_ |= adjustment_counter_ == adjust_length;
}
//