mirror of https://github.com/stella-emu/stella.git
Silence clang warnings.
This commit is contained in:
parent
be877f8503
commit
14dde10b34
|
@ -12,4 +12,4 @@ namespace TIAConstants {
|
|||
|
||||
}
|
||||
|
||||
#endif // TIA_CONSTANTS_HXX
|
||||
#endif // TIA_CONSTANTS_HXX
|
||||
|
|
|
@ -107,7 +107,7 @@ class AbstractFrameManager : public Serializable
|
|||
/**
|
||||
* The configured (our autodetected) frame layout (PAL / NTSC).
|
||||
*/
|
||||
FrameLayout layout() const { return myLayout; };
|
||||
FrameLayout layout() const { return myLayout; }
|
||||
|
||||
/**
|
||||
* The current frame rate. This is calculated dynamically from the number of
|
||||
|
@ -144,7 +144,7 @@ class AbstractFrameManager : public Serializable
|
|||
/**
|
||||
* Enable jitter simulation
|
||||
*/
|
||||
virtual void enableJitter(bool enabled) {};
|
||||
virtual void enableJitter(bool enabled) {}
|
||||
|
||||
/**
|
||||
* The scanline difference between the last two frames. Used in the TIA to
|
||||
|
|
|
@ -36,7 +36,7 @@ class FrameManager: public AbstractFrameManager {
|
|||
|
||||
void enableJitter(bool enabled) override { myJitterEnabled = enabled; }
|
||||
|
||||
uInt32 height() const override { return myHeight; };
|
||||
uInt32 height() const override { return myHeight; }
|
||||
|
||||
void setFixedHeight(uInt32 height) override;
|
||||
|
||||
|
|
|
@ -63,7 +63,7 @@ void JitterEmulation::frameComplete(uInt32 scanlineCount)
|
|||
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
void JitterEmulation::updateJitter(Int32 scanlineDifference)
|
||||
{
|
||||
if ((uInt32)abs(scanlineDifference) < Metrics::minDeltaForJitter) return;
|
||||
if (uInt32(abs(scanlineDifference)) < Metrics::minDeltaForJitter) return;
|
||||
|
||||
Int32 jitter = std::min<Int32>(jitter, Metrics::maxJitter);
|
||||
jitter = std::max<Int32>(jitter, -myYStart);
|
||||
|
|
Loading…
Reference in New Issue