mirror of https://github.com/stella-emu/stella.git
fixed #394
extended trace step count to 10000 (preliminary fix for #393)
This commit is contained in:
parent
e36692bee3
commit
2e4340911b
|
@ -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);
|
||||
|
||||
|
|
|
@ -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));
|
||||
|
||||
|
|
Loading…
Reference in New Issue