Wintermute Engine > Bug reports

Bug in CWmeUtils::MakeRGBA

(1/1)

metamorphium:
Proper method should look like this:


--- Code: ---//////////////////////////////////////////////////////////////////////////
// packs RGBA values into a single DWORD number
unsigned long CWmeUtils::MakeRGBA(unsigned char R, unsigned char G, unsigned char B, unsigned char A)
{
return (unsigned long)((((A)&0xff)<<24)|(((B)&0xff)<<16)|(((G)&0xff)<<8)|((R)&0xff));
}

--- End code ---

Navigation

[0] Message Index

Go to full version