mirror of
https://github.com/TomHarte/CLK.git
synced 2024-09-06 05:54:28 +00:00
Pulled the reset time for horizontal blank extend up to position 224.
This commit is contained in:
parent
2a81ae1dec
commit
06dd98b23c
@ -428,12 +428,12 @@ void TIA::output_for_cycles(int number_of_cycles)
|
|||||||
*/
|
*/
|
||||||
int output_cursor = horizontal_counter_;
|
int output_cursor = horizontal_counter_;
|
||||||
horizontal_counter_ += number_of_cycles;
|
horizontal_counter_ += number_of_cycles;
|
||||||
|
bool is_reset = output_cursor < 224 && horizontal_counter_ >= 224;
|
||||||
|
|
||||||
if(!output_cursor)
|
if(!output_cursor)
|
||||||
{
|
{
|
||||||
if(line_end_function_) line_end_function_(collision_buffer_);
|
if(line_end_function_) line_end_function_(collision_buffer_);
|
||||||
memset(collision_buffer_, 0, sizeof(collision_buffer_));
|
memset(collision_buffer_, 0, sizeof(collision_buffer_));
|
||||||
horizontal_blank_extend_ = false;
|
|
||||||
|
|
||||||
ball_.motion_time %= 228;
|
ball_.motion_time %= 228;
|
||||||
player_[0].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;
|
horizontal_counter_ %= cycles_per_line;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user