1
0
mirror of https://github.com/TomHarte/CLK.git synced 2025-01-11 08:30:55 +00:00

Fixed: made sure that _vBlankExtend resets itself even on non-pixel lines.

This commit is contained in:
Thomas Harte 2015-08-17 00:09:28 -04:00
parent 414849f166
commit df68aeff5a

View File

@ -233,7 +233,6 @@ void Machine::output_pixels(unsigned int count)
if(state == OutputState::Pixel)
{
_vBlankExtend = false;
_crt->allocate_write_area(160);
_outputBuffer = _crt->get_write_target_for_buffer(0);
} else {
@ -241,6 +240,9 @@ void Machine::output_pixels(unsigned int count)
}
}
if(_vBlankExtend && _horizontalTimer == 151)
_vBlankExtend = false;
if(_horizontalTimer < (_vBlankExtend ? 152 : 160))
{
if(_outputBuffer)