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