From: Vadim Zeitlin Date: Thu, 6 May 2004 14:52:55 +0000 (+0000) Subject: don't create artificial alpha channel for all bitmaps (patch 949221) X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/3cfd077ff8633d4f02354d4c8ad0a1a0b42c6213 don't create artificial alpha channel for all bitmaps (patch 949221) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27114 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/msw/bitmap.cpp b/src/msw/bitmap.cpp index 86bddb84ca..25fa4bc5c3 100644 --- a/src/msw/bitmap.cpp +++ b/src/msw/bitmap.cpp @@ -789,7 +789,7 @@ bool wxBitmap::CreateFromImage(const wxImage& image, int depth, WXHDC hdc) { hbitmap = dib.CreateDDB((HDC)hdc); - refData->m_depth = depth == -1 ? wxDisplayDepth() : depth; + refData->m_depth = depth == -1 ? dib.GetDepth() : depth; } #endif // !ALWAYS_USE_DIB