From: Vadim Zeitlin Date: Tue, 3 Jun 2003 18:52:57 +0000 (+0000) Subject: fixed the channel order for Mac (alpha comes first) X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/3964e424bf6b70e43b7cf53ef41d279e4da5c037?ds=sidebyside;hp=091c90b7cb1428a4ebd243a409fa52cbec40b8dd fixed the channel order for Mac (alpha comes first) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20897 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/rawbmp.h b/include/wx/rawbmp.h index 568fd7c667..dbdddcee3f 100644 --- a/include/wx/rawbmp.h +++ b/include/wx/rawbmp.h @@ -144,11 +144,13 @@ typedef wxPixelFormat wxImagePixelFormat; // the (most common) native bitmap format without alpha support typedef wxPixelFormat wxNativePixelFormat; // the (most common) native format for bitmaps with alpha channel @@ -156,7 +158,14 @@ typedef wxPixelFormat wxAlphaPixelFormat; + #if defined(__WXMSW__) + 3 + #elif defined(__WXMAC__) + 0 + #else // default for the others (not supported anyhow) + 3 + #endif // platform + > wxAlphaPixelFormat; // we also define the (default/best) pixel format for the given class: this is // used as default value for the pixel format in wxPixelIterator template