diff options
-rw-r--r-- | options/slider.cpp | 2 | ||||
-rw-r--r-- | options/slider.hpp | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/options/slider.cpp b/options/slider.cpp index 001e8104..458dba56 100644 --- a/options/slider.cpp +++ b/options/slider.cpp @@ -3,7 +3,7 @@ namespace options { -slider_value::slider_value(float cur, float min, float max) : +slider_value::slider_value(double cur, double min, double max) : cur_(cur), min_(min), max_(max) diff --git a/options/slider.hpp b/options/slider.hpp index dff841c6..1ae63d10 100644 --- a/options/slider.hpp +++ b/options/slider.hpp @@ -18,7 +18,7 @@ namespace options { double cur_, min_, max_; public: - slider_value(float cur, float min, float max); + slider_value(double cur, double min, double max); template<typename t, typename u, typename v> slider_value(t cur, u min, v max) : cur_(double(cur)), @@ -31,9 +31,9 @@ namespace options slider_value& operator=(const slider_value& v); bool operator==(const slider_value& v) const; operator double() const { return cur_; } - double cur() const { return double(cur_); } - double min() const { return double(min_); } - double max() const { return double(max_); } + double cur() const { return cur_; } + double min() const { return min_; } + double max() const { return max_; } slider_value update_from_slider(int pos, int q_min, int q_max) const; int to_slider_pos(int q_min, int q_max) const; }; |