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:
Robin Dunn 2004-02-03 00:08:53 +00:00
parent 079cc3b670
commit b4e7f826af

View File

@ -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 )