X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/289307fa14491a0db9c6bfe6b8940067b27b2c8e..5c250a10332dc17263c66deb629b5fa8c4320f8a:/src/msw/bitmap.cpp diff --git a/src/msw/bitmap.cpp b/src/msw/bitmap.cpp index 3a3798dce3..ad7929de21 100644 --- a/src/msw/bitmap.cpp +++ b/src/msw/bitmap.cpp @@ -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 )