: Your code assumes the same order for declaration : of the unsigned char r:5, g:6, b:5 structure.
Actually I understand now, we'll just use the MW_CPU_BIG_ENDIAN flag and assume that the C bitfields are allocated MSB->LSB in the big endian case, which works without requiring a later byte swap. I'll apply your patch later this evening! Regards, Greg --------------------------------------------------------------------- To unsubscribe, e-mail: nanogui-unsubscr...@linuxhacker.org For additional commands, e-mail: nanogui-h...@linuxhacker.org