int v = ((r << 24) & 0xff000000) | ((g << 16) & 0xff0000) | ((b << 8) & 0xff00) | ( a & 0xff) ;
int v = ((r & 0xff) << 24) | ((g & 0xff) << 16) | ((b & 0xff) << 8) | ( a & 0xff) ;
Cause it was like 1AM here when I wrote it?
Take your pick ;)
Yeah I'd totally write the bottom way I think, or I hope, cheers.