diff options
author | 2015-12-12 08:58:57 +0100 | |
---|---|---|
committer | 2015-12-12 08:58:57 +0100 | |
commit | 379581fb3690d92f7e3815534a479823aee8ddcc (patch) | |
tree | 77b4a080ba46ba58bfd8382926580cb2aad5a69d /src/osd/modules/render/draw13.cpp | |
parent | afe2bbe6481acf518e384509586ada235e106c54 (diff) |
macro removal INLINE -> static inline (nw)
Diffstat (limited to 'src/osd/modules/render/draw13.cpp')
-rw-r--r-- | src/osd/modules/render/draw13.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/osd/modules/render/draw13.cpp b/src/osd/modules/render/draw13.cpp index f1f75fe57bf..f357d567e71 100644 --- a/src/osd/modules/render/draw13.cpp +++ b/src/osd/modules/render/draw13.cpp @@ -354,17 +354,17 @@ static bool blit_info_initialized = false; //============================================================ -INLINE float round_nearest(float f) +static inline float round_nearest(float f) { return floor(f + 0.5f); } -INLINE HashT texture_compute_hash(const render_texinfo &texture, const UINT32 flags) +static inline HashT texture_compute_hash(const render_texinfo &texture, const UINT32 flags) { return (HashT)texture.base ^ (flags & (PRIMFLAG_BLENDMODE_MASK | PRIMFLAG_TEXFORMAT_MASK)); } -INLINE SDL_BlendMode map_blendmode(const int blendmode) +static inline SDL_BlendMode map_blendmode(const int blendmode) { switch (blendmode) { @@ -382,7 +382,7 @@ INLINE SDL_BlendMode map_blendmode(const int blendmode) return SDL_BLENDMODE_NONE; } -INLINE void set_coloralphamode(SDL_Texture *texture_id, const render_color *color) +static inline void set_coloralphamode(SDL_Texture *texture_id, const render_color *color) { UINT32 sr = (UINT32)(255.0f * color->r); UINT32 sg = (UINT32)(255.0f * color->g); |