extended trace step count to 10000 (preliminary fix for #393)
This commit is contained in:
thrust26 2018-12-02 11:20:10 +01:00
parent e36692bee3
commit 2e4340911b
2 changed files with 6 additions and 3 deletions

View File

@ -72,16 +72,19 @@ void TIASurface::initialize(const Console& console, const VideoMode& mode)
// Phosphor mode can be enabled either globally or per-ROM
int p_blend = 0;
bool enable = false;
if(myOSystem.settings().getString("tv.phosphor") == "always")
{
p_blend = myOSystem.settings().getInt("tv.phosblend");
enable = true;
}
else if(console.properties().get(Display_Phosphor) == "YES")
else
{
p_blend = atoi(console.properties().get(Display_PPBlend).c_str());
enable = console.properties().get(Display_Phosphor) == "YES";
}
enablePhosphor(p_blend != 0, p_blend);
enablePhosphor(enable, p_blend);
setNTSC(NTSCFilter::Preset(myOSystem.settings().getInt("tv.filter")), false);

View File

@ -1124,7 +1124,7 @@ TIA& TIA::updateScanlineByStep()
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
TIA& TIA::updateScanlineByTrace(int target)
{
uInt32 count = 100; // only try up to 100 steps
uInt32 count = 10000; // only try up to 100 steps
while (mySystem->m6502().getPC() != target && count-- &&
mySystem->m6502().execute(1));