diff --git a/polymer/eduke32/build/src/palette.c b/polymer/eduke32/build/src/palette.c index a6b5eab83..63390f906 100644 --- a/polymer/eduke32/build/src/palette.c +++ b/polymer/eduke32/build/src/palette.c @@ -686,7 +686,7 @@ void setbrightness(char dabrightness, uint8_t dapalid, uint8_t flags) } } -inline palette_t getpal(int32_t col) +palette_t getpal(int32_t col) { if (!gammabrightness) { diff --git a/polymer/eduke32/source/sbar.c b/polymer/eduke32/source/sbar.c index 8111ef6e7..2e27e8dcf 100644 --- a/polymer/eduke32/source/sbar.c +++ b/polymer/eduke32/source/sbar.c @@ -34,11 +34,6 @@ int32_t althud_shadows = 0; int32_t althud_shadows = 1; #endif -inline int32_t sbarsc(int32_t sc) -{ - return scale(sc, ud.statusbarscale, 100); -} - static int32_t sbarx(int32_t x) { if (ud.screen_size == 4) return sbarsc(x<<16); diff --git a/polymer/eduke32/source/sbar.h b/polymer/eduke32/source/sbar.h index 1c88d3e4d..f3bf0d8ab 100644 --- a/polymer/eduke32/source/sbar.h +++ b/polymer/eduke32/source/sbar.h @@ -27,7 +27,11 @@ extern int32_t althud_numberpal; extern int32_t althud_numbertile; extern int32_t althud_shadows; -int32_t sbarsc(int32_t sc); +FORCE_INLINE int32_t sbarsc(int32_t sc) +{ + return scale(sc, ud.statusbarscale, 100); +} + int32_t sbarx16(int32_t x); int32_t sbary16(int32_t y); void G_DrawInventory(const DukePlayer_t *p);