From d2e4469c7239681a1b778dbc7ada656da9021e58 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 18 Aug 2022 02:04:32 -0400 Subject: Avoid using "static inline" for functions in headers --- src/gui/rgba.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/gui') 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(r) << 24) | @@ -32,7 +32,7 @@ rgba_to_uint(uint8_t r, uint8_t g, uint8_t b, uint8_t a) (static_cast(a))); } -static inline uint8_t +inline uint8_t mono_interpolate(uint8_t v1, uint8_t v2, float f) { return static_cast(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(x) >> 8) & 0xFF) #define RGBA_A(x) (static_cast(x) & 0xFF) -static inline uint32_t +inline uint32_t rgba_interpolate(uint32_t c1, uint32_t c2, float f) { return rgba_to_uint( -- cgit v1.2.1