mirror of
https://github.com/TomHarte/CLK.git
synced 2025-08-07 08:26:28 +00:00
Fixed: _vBlankExtend is now cleared at the correct moment.
This commit is contained in:
@@ -240,9 +240,6 @@ void Machine::output_pixels(unsigned int count)
|
||||
}
|
||||
}
|
||||
|
||||
if(_vBlankExtend && _horizontalTimer == 151)
|
||||
_vBlankExtend = false;
|
||||
|
||||
if(_horizontalTimer < (_vBlankExtend ? 152 : 160))
|
||||
{
|
||||
if(_outputBuffer)
|
||||
@@ -262,6 +259,9 @@ void Machine::output_pixels(unsigned int count)
|
||||
const int32_t sign_extension = _horizontalTimer >> 31;
|
||||
_horizontalTimer = (_horizontalTimer&~sign_extension) | (sign_extension&horizontalTimerReload);
|
||||
|
||||
if(!_horizontalTimer)
|
||||
_vBlankExtend = false;
|
||||
|
||||
_timestamp ++;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user