diff options
author | twinaphex | 2014-12-15 00:59:52 +0100 |
---|---|---|
committer | twinaphex | 2014-12-15 00:59:52 +0100 |
commit | 6b8c7d2376bb04578dec209eeafc037c33a32d45 (patch) | |
tree | 01e95a3b8e66ea12004d20a667f3f3eff45b5107 /source/gfx.h | |
parent | b27c451831082179cc9bc3c1b3424ebb0f66dd74 (diff) | |
download | snesemu-6b8c7d2376bb04578dec209eeafc037c33a32d45.tar.gz snesemu-6b8c7d2376bb04578dec209eeafc037c33a32d45.tar.bz2 snesemu-6b8c7d2376bb04578dec209eeafc037c33a32d45.zip |
Use MSB_FIRST instead of LSB_FIRST
Diffstat (limited to 'source/gfx.h')
-rw-r--r-- | source/gfx.h | 6 |
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 |