mirror of https://github.com/stella-emu/stella.git
Fix warning for potential incorrect rounding.
The proper approach is std::lround, but it won't be constexpr until C++23.
This commit is contained in:
parent
304988b5c4
commit
ec17cfa610
|
@ -34,7 +34,8 @@ class FrameManager: public AbstractFrameManager {
|
|||
frameSizePAL = 312,
|
||||
baseHeightNTSC = 228, // 217..239
|
||||
baseHeightPAL = 274, // 260..288
|
||||
maxHeight = static_cast<uInt32>(baseHeightPAL * 1.05 + 0.5), // 288 FIXME
|
||||
// NOLINTNEXTLINE: lround suggested, but not constexpr until C++23
|
||||
maxHeight = static_cast<uInt32>(baseHeightPAL * 1.05 + 0.5), // 288
|
||||
maxLinesVsync = 50,
|
||||
initialGarbageFrames = TIAConstants::initialGarbageFrames,
|
||||
ystartNTSC = 23,
|
||||
|
|
Loading…
Reference in New Issue