View Single Post
  #19  
Old 07-18-2011, 10:03 PM
lerxst2112
Demi-God
 
Join Date: Aug 2010
Posts: 1,742
Default

Sorry, I made a typo in the original code.

Here are the two corrected bits.

Code:
uint32 setcolor = (red << 16) | (green << 8) | blue;

and

if(setcolor) {
    setcolor |= (0xff << 24);
}

Last edited by lerxst2112; 07-18-2011 at 10:06 PM.. Reason: crazy spacing.
Reply With Quote