summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2023-02-24 10:15:47 (EST)
committer P. J. McDermott <pj@pehjota.net>2023-02-24 10:15:47 (EST)
commit7df50e1dafa5dbd8c061e1eb4e2f5729b66f0ef4 (patch)
tree99ce1f50b2d114026aa013d97606b1a923f86198 /src
parent33890e7b9aab0d7f77c8d00a289c2a128373f1b2 (diff)
downloadoverworld-rpg-7df50e1dafa5dbd8c061e1eb4e2f5729b66f0ef4.zip
overworld-rpg-7df50e1dafa5dbd8c061e1eb4e2f5729b66f0ef4.tar.gz
overworld-rpg-7df50e1dafa5dbd8c061e1eb4e2f5729b66f0ef4.tar.bz2
palettes: Don't try to force inlining
Diffstat (limited to 'src')
-rw-r--r--src/palettes.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/palettes.c b/src/palettes.c
index a3b968d..3ac682e 100644
--- a/src/palettes.c
+++ b/src/palettes.c
@@ -25,8 +25,8 @@
#define M_PI 3.14159265358979323846
#endif
-static inline Uint8 cycle_palettes_cosine_channel(Uint8, Uint8, double);
-static inline Uint8 cycle_palettes_linear_channel(Uint8, Uint8, double);
+static Uint8 cycle_palettes_cosine_channel(Uint8, Uint8, double);
+static Uint8 cycle_palettes_linear_channel(Uint8, Uint8, double);
SDL_Palette *
cycle_palettes_cosine(Uint32 t, Uint32 t_max,
@@ -98,7 +98,7 @@ cycle_palettes_linear(Uint32 t, Uint32 t_max,
return pal_step;
}
-static inline Uint8
+static Uint8
cycle_palettes_cosine_channel(Uint8 y_start, Uint8 y_end, double x)
{
double m;
@@ -112,7 +112,7 @@ cycle_palettes_cosine_channel(Uint8 y_start, Uint8 y_end, double x)
return y;
}
-static inline Uint8
+static Uint8
cycle_palettes_linear_channel(Uint8 y_start, Uint8 y_end, double x)
{
double m;