wxCocoa: Added wxNativePixelFormat and defined wxPIXEL_FORMAT_ALPHA

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24715 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
David Elliott
2003-12-06 23:20:46 +00:00
parent f048f8290f
commit a28fe6d54e

View File

@@ -154,6 +154,11 @@ typedef wxPixelFormat<unsigned char, 24, 0, 1, 2> wxImagePixelFormat;
typedef wxPixelFormat<unsigned char, 32, 1, 2, 3> wxNativePixelFormat;
#define wxPIXEL_FORMAT_ALPHA 0
#elif defined(__WXCOCOA__)
// Cocoa is standard RGB or RGBA (normally it is RGBA)
typedef wxPixelFormat<unsigned char, 24, 0, 1, 2> wxNativePixelFormat;
#define wxPIXEL_FORMAT_ALPHA 3
#endif
// the (most common) native format for bitmaps with alpha channel