aboutsummaryrefslogtreecommitdiff
path: root/source/gfx.h
diff options
context:
space:
mode:
authortwinaphex2014-12-15 00:59:52 +0100
committertwinaphex2014-12-15 00:59:52 +0100
commit6b8c7d2376bb04578dec209eeafc037c33a32d45 (patch)
tree01e95a3b8e66ea12004d20a667f3f3eff45b5107 /source/gfx.h
parentb27c451831082179cc9bc3c1b3424ebb0f66dd74 (diff)
downloadsnes9x2005-6b8c7d2376bb04578dec209eeafc037c33a32d45.tar.gz
snes9x2005-6b8c7d2376bb04578dec209eeafc037c33a32d45.tar.bz2
snes9x2005-6b8c7d2376bb04578dec209eeafc037c33a32d45.zip
Use MSB_FIRST instead of LSB_FIRST
Diffstat (limited to 'source/gfx.h')
-rw-r--r--source/gfx.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/source/gfx.h b/source/gfx.h
index 98e22ae..c13620a 100644
--- a/source/gfx.h
+++ b/source/gfx.h
@@ -239,15 +239,9 @@ extern uint8_t mul_brightness [16][32];
#define READ_2BYTES(s) (*(uint16_t *) (s))
#define WRITE_2BYTES(s, d) *(uint16_t *) (s) = (d)
#else
-#ifdef LSB_FIRST
#define READ_2BYTES(s) (*(uint8_t *) (s) | (*((uint8_t *) (s) + 1) << 8))
#define WRITE_2BYTES(s, d) *(uint8_t *) (s) = (d), \
*((uint8_t *) (s) + 1) = (d) >> 8
-#else // else MSB_FISRT
-#define READ_2BYTES(s) (*(uint8_t *) (s) | (*((uint8_t *) (s) + 1) << 8))
-#define WRITE_2BYTES(s, d) *(uint8_t *) (s) = (d), \
- *((uint8_t *) (s) + 1) = (d) >> 8
-#endif // LSB_FIRST
#endif // i386
#define SUB_SCREEN_DEPTH 0