Image received by memory transfer mode has red color replaced with blue and vice versa. I tried to invert them using macro
Code:
#define RGB2BGR(color) (color & 0xFF000000) | ((color & 0xFF0000) >> 16) | (color & 0x00FF00) | ((color & 0x0000FF) << 16)
but the image wasn't correct. Did anyone had similar problem? How to invert colors?
-----------------------------------
If this could help to somebody, in Twacker source code is a function named FlipBitMap. I didn't know that native and memory mode have different colors order.