diff options
author | David Robillard <d@drobilla.net> | 2020-08-01 14:06:20 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-08-02 01:48:48 +0200 |
commit | 7fe8260c6c0a53fdc9ba04130c577122402a82ec (patch) | |
tree | 24955659f26eca7491c37a89ca8b4cb2483cf4c5 /src/gui | |
parent | c4d7cb7a132a59804a2bb1fc0e5ef3e676dc5431 (diff) | |
download | ingen-7fe8260c6c0a53fdc9ba04130c577122402a82ec.tar.gz ingen-7fe8260c6c0a53fdc9ba04130c577122402a82ec.tar.bz2 ingen-7fe8260c6c0a53fdc9ba04130c577122402a82ec.zip |
Use type-appropriate math functions
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/rgba.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/rgba.hpp b/src/gui/rgba.hpp index 949a80d7..ffd63f82 100644 --- a/src/gui/rgba.hpp +++ b/src/gui/rgba.hpp @@ -34,7 +34,7 @@ rgba_to_uint(uint8_t r, uint8_t g, uint8_t b, uint8_t a) static inline uint8_t mono_interpolate(uint8_t v1, uint8_t v2, float f) { - return static_cast<int>(rint((v2) * (f) + (v1) * (1 - (f)))); + return static_cast<int>(rintf((v2) * (f) + (v1) * (1 - (f)))); } #define RGBA_R(x) (static_cast<uint32_t>(x) >> 24) |