From df68aeff5a21d790bf413c6f07ca999741e788da Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Mon, 17 Aug 2015 00:09:28 -0400 Subject: [PATCH] Fixed: made sure that _vBlankExtend resets itself even on non-pixel lines. --- Machines/Atari2600.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Machines/Atari2600.cpp b/Machines/Atari2600.cpp index cf248f688..7d6e53007 100644 --- a/Machines/Atari2600.cpp +++ b/Machines/Atari2600.cpp @@ -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)