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
This commit is contained in:
		@@ -789,7 +789,7 @@ bool wxBitmap::CreateFromImage(const wxImage& image, int depth, WXHDC hdc)
 | 
				
			|||||||
    {
 | 
					    {
 | 
				
			||||||
        hbitmap = dib.CreateDDB((HDC)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
 | 
					#endif // !ALWAYS_USE_DIB
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user