diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2016-09-16 15:11:40 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2016-09-16 18:04:35 +0200 |
commit | b9df690652818ed91097cb9f24854022f823d35e (patch) | |
tree | 5ad6c4142861e43ea350682b95e9c861c946350a /options | |
parent | 33c4e66568b128312b1dcdf96b54f72cf902e498 (diff) |
options/slider: fix fpu type
Diffstat (limited to '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; }; |