mirror of https://github.com/stella-emu/stella.git
fixed frame layout detection
This commit is contained in:
parent
e752f376e9
commit
9e973bc955
|
@ -238,7 +238,7 @@ void FrameLayoutDetector::finalizeFrame()
|
|||
// 1.0 (>=312) and added to PAL and (inverted) NTSC sums.
|
||||
constexpr double ODD_PENALTY = 0.5; // guessed value :)
|
||||
const double palFrame = BSPF::clamp(((myCurrentFrameFinalLines % 2) ? ODD_PENALTY : 1.0)
|
||||
* static_cast<double>(myCurrentFrameFinalLines - frameLinesNTSC)
|
||||
* (static_cast<double>(myCurrentFrameFinalLines) - frameLinesNTSC)
|
||||
/ static_cast<double>(frameLinesPAL - frameLinesNTSC), 0.0, 1.0);
|
||||
myPalFrameSum += palFrame;
|
||||
myNtscFrameSum += 1.0 - palFrame;
|
||||
|
|
Loading…
Reference in New Issue