From b9df690652818ed91097cb9f24854022f823d35e Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Fri, 16 Sep 2016 15:11:40 +0200 Subject: options/slider: fix fpu type --- options/slider.cpp | 2 +- options/slider.hpp | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'options') 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 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; }; -- cgit v1.2.3