Re: [AD] trying to make allegro compatible with MFC

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


> Javier, could you post the definition of the Win32 RGB macro from the
> Platform SDK ?
> I'd rather use it than the MinGW32 version.

the platform SDK docs say

COLORREF RGB(
  BYTE bRed,    // red component of color
  BYTE bGreen,  // green component of color
  BYTE bBlue    // blue component of color
);

#define RGB(r,g,b)
((COLORREF)(((BYTE)(r)|((WORD)((BYTE)(g))<<8))|(((DWORD)(BYTE)(b))<<16)))



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/