X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6463b9f5399b8670a0c74f2f8666bc2c9f37a406..34a336adb6796a596e3d59846bd23370f936921f:/src/msw/bitmap.cpp diff --git a/src/msw/bitmap.cpp b/src/msw/bitmap.cpp index 3a3798dce3..6a2c74a221 100644 --- a/src/msw/bitmap.cpp +++ b/src/msw/bitmap.cpp @@ -429,7 +429,11 @@ wxBitmap::wxBitmap(const char bits[], int width, int height, int depth) } // Create from XPM data +#if wxUSE_IMAGE && wxUSE_XPM bool wxBitmap::CreateFromXpm(const char **data) +#else +bool wxBitmap::CreateFromXpm(const char **WXUNUSED(data)) +#endif { #if wxUSE_IMAGE && wxUSE_XPM Init(); @@ -520,10 +524,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 )