From b4e7f826aff0f60826543bec9e1cb3fbcbeb0589 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Tue, 3 Feb 2004 00:08:53 +0000 Subject: [PATCH] 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 --- src/msw/bitmap.cpp | 4 ---- 1 file changed, 4 deletions(-) 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 )