mirror of https://github.com/stella-emu/stella.git
fixed palette/tv-effects slider rounding issue
This commit is contained in:
parent
b93ea1c837
commit
8483b6d160
|
@ -126,7 +126,7 @@ class PaletteHandler
|
|||
Convert adjustables from/to 100% scale
|
||||
*/
|
||||
static constexpr float scaleFrom100(float x) { return (x / 50.F) - 1.F; }
|
||||
static constexpr uInt32 scaleTo100(float x) { return uInt32(50 * (x + 1.F)); }
|
||||
static constexpr uInt32 scaleTo100(float x) { return uInt32(50.0001F * (x + 1.F)); }
|
||||
|
||||
/**
|
||||
Convert palette settings name to enumeration.
|
||||
|
|
|
@ -20,8 +20,8 @@
|
|||
|
||||
#include "NTSCFilter.hxx"
|
||||
|
||||
constexpr float scaleFrom100(float x) { return (x/50.F) - 1.F; }
|
||||
constexpr uInt32 scaleTo100(float x) { return uInt32(50*(x+1.F)); }
|
||||
constexpr float scaleFrom100(float x) { return (x / 50.F) - 1.F; }
|
||||
constexpr uInt32 scaleTo100(float x) { return uInt32(50.0001F * (x + 1.F)); }
|
||||
|
||||
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
string NTSCFilter::setPreset(Preset preset)
|
||||
|
|
Loading…
Reference in New Issue