From 3964e424bf6b70e43b7cf53ef41d279e4da5c037 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Tue, 3 Jun 2003 18:52:57 +0000 Subject: [PATCH] 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 --- include/wx/rawbmp.h | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) 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 -- 2.45.2