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:
parent
079cc3b670
commit
b4e7f826af
@ -520,10 +520,6 @@ bool wxBitmap::DoCreate(int w, int h, int d, WXHDC hdc)
|
||||
else // create a DDB
|
||||
#endif
|
||||
{
|
||||
if ( d == -1 )
|
||||
d = wxDisplayDepth();
|
||||
|
||||
GetBitmapData()->m_depth = d;
|
||||
|
||||
#ifndef __WXMICROWIN__
|
||||
if ( d > 0 )
|
||||
|
Loading…
Reference in New Issue
Block a user