summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/rendutil.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/emu/rendutil.h')
-rw-r--r--src/emu/rendutil.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/emu/rendutil.h b/src/emu/rendutil.h
index 9208d729352..c2d18d43f35 100644
--- a/src/emu/rendutil.h
+++ b/src/emu/rendutil.h
@@ -69,7 +69,7 @@ static inline float render_round_nearest(float f)
flip flags
-------------------------------------------------*/
-static inline int orientation_swap_flips(int orientation)
+constexpr int orientation_swap_flips(int orientation)
{
return (orientation & ORIENTATION_SWAP_XY) |
((orientation & ORIENTATION_FLIP_X) ? ORIENTATION_FLIP_Y : 0) |
@@ -82,7 +82,7 @@ static inline int orientation_swap_flips(int orientation)
that will undo another orientation
-------------------------------------------------*/
-static inline int orientation_reverse(int orientation)
+constexpr int orientation_reverse(int orientation)
{
/* if not swapping X/Y, then just apply the same transform to reverse */
if (!(orientation & ORIENTATION_SWAP_XY))
@@ -99,7 +99,7 @@ static inline int orientation_reverse(int orientation)
after applying two subsequent orientations
-------------------------------------------------*/
-static inline int orientation_add(int orientation1, int orientation2)
+constexpr int orientation_add(int orientation1, int orientation2)
{
/* if the 2nd transform doesn't swap, just XOR together */
if (!(orientation2 & ORIENTATION_SWAP_XY))