From 6b8c7d2376bb04578dec209eeafc037c33a32d45 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Mon, 15 Dec 2014 00:59:52 +0100 Subject: Use MSB_FIRST instead of LSB_FIRST --- source/gfx.h | 6 ------ 1 file changed, 6 deletions(-) (limited to 'source/gfx.h') 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 -- cgit v1.2.3