summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/emucore.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/emu/emucore.h')
-rw-r--r--src/emu/emucore.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/emu/emucore.h b/src/emu/emucore.h
index 51fca10e42b..46a5427a4ec 100644
--- a/src/emu/emucore.h
+++ b/src/emu/emucore.h
@@ -168,14 +168,14 @@ const endianness_t ENDIANNESS_NATIVE = ENDIANNESS_BIG;
// orientation of bitmaps
-#define ORIENTATION_FLIP_X 0x0001 /* mirror everything in the X direction */
-#define ORIENTATION_FLIP_Y 0x0002 /* mirror everything in the Y direction */
-#define ORIENTATION_SWAP_XY 0x0004 /* mirror along the top-left/bottom-right diagonal */
-
-#define ROT0 0
-#define ROT90 (ORIENTATION_SWAP_XY | ORIENTATION_FLIP_X) /* rotate clockwise 90 degrees */
-#define ROT180 (ORIENTATION_FLIP_X | ORIENTATION_FLIP_Y) /* rotate 180 degrees */
-#define ROT270 (ORIENTATION_SWAP_XY | ORIENTATION_FLIP_Y) /* rotate counter-clockwise 90 degrees */
+constexpr int ORIENTATION_FLIP_X = 0x0001; // mirror everything in the X direction
+constexpr int ORIENTATION_FLIP_Y = 0x0002; // mirror everything in the Y direction
+constexpr int ORIENTATION_SWAP_XY = 0x0004; // mirror along the top-left/bottom-right diagonal
+
+constexpr int ROT0 = 0;
+constexpr int ROT90 = ORIENTATION_SWAP_XY | ORIENTATION_FLIP_X; // rotate clockwise 90 degrees
+constexpr int ROT180 = ORIENTATION_FLIP_X | ORIENTATION_FLIP_Y; // rotate 180 degrees
+constexpr int ROT270 = ORIENTATION_SWAP_XY | ORIENTATION_FLIP_Y; // rotate counter-clockwise 90 degrees