mirror of https://github.com/stella-emu/stella.git
Fix compile with gcc 5.4.0.
This commit is contained in:
parent
6d4a98d735
commit
2111340785
|
@ -20,6 +20,10 @@
|
|||
|
||||
#include "NTSCFilter.hxx"
|
||||
|
||||
constexpr double scaleFrom100(double x) { return (x/50.0) - 1.0; }
|
||||
|
||||
constexpr uInt32 scaleTo100(double x) { return uInt32(50*(x+1.0)); }
|
||||
|
||||
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
NTSCFilter::NTSCFilter()
|
||||
: mySetup(AtariNTSC::TV_Composite),
|
||||
|
|
|
@ -116,9 +116,6 @@ class NTSCFilter
|
|||
void convertToAdjustable(Adjustable& adjustable,
|
||||
const AtariNTSC::Setup& setup) const;
|
||||
|
||||
constexpr double scaleFrom100(double x) const { return (x/50.0) - 1.0; }
|
||||
constexpr uInt32 scaleTo100(double x) const { return uInt32(50*(x+1.0)); }
|
||||
|
||||
private:
|
||||
// The NTSC object
|
||||
AtariNTSC myNTSC;
|
||||
|
|
Loading…
Reference in New Issue