aboutsummaryrefslogtreecommitdiff
path: root/source/gfx.h
diff options
context:
space:
mode:
authortwinaphex2017-08-11 17:43:00 +0200
committertwinaphex2017-08-11 17:43:00 +0200
commitb9c74ceb1352c8f433cf6bf2c446ae07457c5267 (patch)
treeafd398fed3d08c81957373be55a12284cb932ab6 /source/gfx.h
parent1aecedc999445e9a27e04f665fd562b576775d08 (diff)
downloadsnesemu-b9c74ceb1352c8f433cf6bf2c446ae07457c5267.tar.gz
snesemu-b9c74ceb1352c8f433cf6bf2c446ae07457c5267.tar.bz2
snesemu-b9c74ceb1352c8f433cf6bf2c446ae07457c5267.zip
Start making this suitable for MSVC and C89
Diffstat (limited to 'source/gfx.h')
-rw-r--r--source/gfx.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/gfx.h b/source/gfx.h
index c6b01cc..1b4cc6a 100644
--- a/source/gfx.h
+++ b/source/gfx.h
@@ -7,6 +7,8 @@
#include "ppu.h"
#include "snes9x.h"
+#include <retro_inline.h>
+
void S9xStartScreenRefresh(void);
void S9xDrawScanLine(uint8_t Line);
void S9xEndScreenRefresh(void);
@@ -145,7 +147,7 @@ extern uint8_t mul_brightness [16][32];
#define SUB_SCREEN_DEPTH 0
#define MAIN_SCREEN_DEPTH 32
-static inline uint16_t COLOR_ADD(uint16_t C1, uint16_t C2)
+static INLINE uint16_t COLOR_ADD(uint16_t C1, uint16_t C2)
{
if (C1 == 0)
return C2;