]> git.saurik.com Git - wxWidgets.git/commitdiff
Use a compatible bitmap if a depth of -1 is given
authorRobin Dunn <robin@alldunn.com>
Tue, 3 Feb 2004 00:08:53 +0000 (00:08 +0000)
committerRobin Dunn <robin@alldunn.com>
Tue, 3 Feb 2004 00:08:53 +0000 (00:08 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25484 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/bitmap.cpp

index 3a3798dce352d67c3dc07aea01b4d347d6564472..ad7929de219c2fc9d8c1451edd62f63868e0b862 100644 (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 )