diff options
author | David Robillard <d@drobilla.net> | 2022-08-18 02:04:32 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2022-08-18 02:04:32 -0400 |
commit | d2e4469c7239681a1b778dbc7ada656da9021e58 (patch) | |
tree | 6b2b4677528fe7f41f8e5877b3d1f589130a3e7d /src/gui | |
parent | b32f05f7c757df2e6b2f5531aeb7438c102f9984 (diff) | |
download | ingen-d2e4469c7239681a1b778dbc7ada656da9021e58.tar.gz ingen-d2e4469c7239681a1b778dbc7ada656da9021e58.tar.bz2 ingen-d2e4469c7239681a1b778dbc7ada656da9021e58.zip |
Avoid using "static inline" for functions in headers
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/rgba.hpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/rgba.hpp b/src/gui/rgba.hpp index bd8de2d2..18d904ac 100644 --- a/src/gui/rgba.hpp +++ b/src/gui/rgba.hpp @@ -23,7 +23,7 @@ namespace ingen { namespace gui { -static inline uint32_t +inline uint32_t rgba_to_uint(uint8_t r, uint8_t g, uint8_t b, uint8_t a) { return ((static_cast<uint32_t>(r) << 24) | @@ -32,7 +32,7 @@ rgba_to_uint(uint8_t r, uint8_t g, uint8_t b, uint8_t a) (static_cast<uint32_t>(a))); } -static inline uint8_t +inline uint8_t mono_interpolate(uint8_t v1, uint8_t v2, float f) { return static_cast<int>(rintf((v2) * (f) + (v1) * (1 - (f)))); @@ -43,7 +43,7 @@ mono_interpolate(uint8_t v1, uint8_t v2, float f) #define RGBA_B(x) ((static_cast<uint32_t>(x) >> 8) & 0xFF) #define RGBA_A(x) (static_cast<uint32_t>(x) & 0xFF) -static inline uint32_t +inline uint32_t rgba_interpolate(uint32_t c1, uint32_t c2, float f) { return rgba_to_uint( |