# HG changeset patch # User John Tsiombikas # Date 1454124228 -7200 # Node ID 9d05431f4a16a2e84df07a4adfa6fe86ef868261 # Parent 85f219fcdc82ff7a26fedb1ecc65fa762e6d2c40 fixed GET_R/GET_B macros which where reversed diff -r 85f219fcdc82 -r 9d05431f4a16 src/gfx.h --- a/src/gfx.h Sun Jun 22 06:27:18 2014 +0300 +++ b/src/gfx.h Sat Jan 30 05:23:48 2016 +0200 @@ -36,9 +36,9 @@ ((((g) >> 3) & 0x1f) << 5) |\ (((r) >> 3) & 0x1f) -#define GET_R(c) ((((c) >> 10) & 0x1f) << 3) +#define GET_R(c) (((c) & 0x1f) << 3) #define GET_G(c) ((((c) >> 5) & 0x1f) << 3) -#define GET_B(c) (((c) & 0x1f) << 3) +#define GET_B(c) ((((c) >> 10) & 0x1f) << 3) int set_video_mode(int mode, int back_buffering); void flip(void);