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:
Stephen Anthony 2024-08-06 16:52:08 -02:30
parent 304988b5c4
commit ec17cfa610
1 changed files with 2 additions and 1 deletions

View File

@ -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,