Please login or register.

Login with username, password and session length
Advanced search  

News:

For WME related articles and tutorials visit WME Resource Center.

Author Topic: Bug in CWmeUtils::MakeRGBA  (Read 8754 times)

0 Members and 1 Guest are viewing this topic.

metamorphium

  • Global Moderator
  • Addicted to WME forum
  • *
  • Karma: 12
  • Offline Offline
  • Gender: Male
  • Posts: 1511
  • Vampires!
    • View Profile
    • CBE  software s.r.o.
Bug in CWmeUtils::MakeRGBA
« on: December 10, 2013, 02:24:53 PM »

Proper method should look like this:

Code: [Select]
//////////////////////////////////////////////////////////////////////////
// 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));
}
Logged
J.U.L.I.A. Enhanced Edition, Vampires!, J.U.L.I.A., J.U.L.I.A. Untold, Ghost in the Sheet
 

Page created in 0.033 seconds with 18 queries.