]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/dcmemory.cpp
updated i18n sample, french translations are now in the "fr" subdirectory.
[wxWidgets.git] / src / msw / dcmemory.cpp
index 51cefba94554684fb2f7bc279d14bdf9e49f7771..f3de3b4b4afac45464e1ceeb42d3fdf8e7de44a4 100644 (file)
@@ -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);