1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-12-25 03:32:01 +00:00

Pulled the reset time for horizontal blank extend up to position 224.

This commit is contained in:
Thomas Harte 2017-02-28 20:28:54 -05:00
parent 2a81ae1dec
commit 06dd98b23c

View File

@ -428,12 +428,12 @@ void TIA::output_for_cycles(int number_of_cycles)
*/
int output_cursor = horizontal_counter_;
horizontal_counter_ += number_of_cycles;
bool is_reset = output_cursor < 224 && horizontal_counter_ >= 224;
if(!output_cursor)
{
if(line_end_function_) line_end_function_(collision_buffer_);
memset(collision_buffer_, 0, sizeof(collision_buffer_));
horizontal_blank_extend_ = false;
ball_.motion_time %= 228;
player_[0].motion_time %= 228;
@ -527,6 +527,8 @@ void TIA::output_for_cycles(int number_of_cycles)
}
}
if(is_reset) horizontal_blank_extend_ = false;
horizontal_counter_ %= cycles_per_line;
}