Use a compatible bitmap if a depth of -1 is given
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25484 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
		@@ -520,10 +520,6 @@ bool wxBitmap::DoCreate(int w, int h, int d, WXHDC hdc)
 | 
				
			|||||||
    else // create a DDB
 | 
					    else // create a DDB
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        if ( d == -1 )
 | 
					 | 
				
			||||||
            d = wxDisplayDepth();
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
        GetBitmapData()->m_depth = d;
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
#ifndef __WXMICROWIN__
 | 
					#ifndef __WXMICROWIN__
 | 
				
			||||||
        if ( d > 0 )
 | 
					        if ( d > 0 )
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user