X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ea57084d103187771c0306a6e1684e32244d6101..fd323a5e230f2b08227b307ff900698fb85d5519:/src/msw/dcmemory.cpp diff --git a/src/msw/dcmemory.cpp b/src/msw/dcmemory.cpp index 51cefba945..f3de3b4b4a 100644 --- a/src/msw/dcmemory.cpp +++ b/src/msw/dcmemory.cpp @@ -21,6 +21,7 @@ #endif #ifndef WX_PRECOMP +#include "wx/utils.h" #endif #include "wx/dcmemory.h" @@ -85,7 +86,11 @@ void wxMemoryDC::SelectObject(const wxBitmap& bitmap) } // Check if the bitmap has the correct depth for this device context - if (bitmap.Ok() && (bitmap.GetDepth() != GetDepth())) +// if (bitmap.Ok() && (bitmap.GetDepth() != GetDepth())) + // JACS 11/12/98: disabling this since the Forty Thieves sample + // shows this not working properly. In fact, if loading from a resource, + // the depth should become the screen depth, so why was it being called? + if (0) { // Make a new bitmap that has the correct depth. wxBitmap newBitmap = bitmap.GetBitmapForDC(* this);