]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/dragimgg.cpp
cleanup - more reformatting; fixed bug introduced in prior commit
[wxWidgets.git] / src / generic / dragimgg.cpp
index ddc94cc7c5fe433212ff49f41ba1795a01a595ed..00433a6df6f947930600d17a18daa3dbcb31bb14 100644 (file)
 // headers
 // ----------------------------------------------------------------------------
 
-#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
-#pragma implementation "dragimgg.h"
-#endif
-
 // For compilers that support precompilation, includes "wx.h".
 #include "wx/wxprec.h"
 
@@ -158,7 +154,7 @@ bool wxGenericDragImage::Create(const wxString& str, const wxCursor& cursor)
 
     dc2.SelectObject(wxNullBitmap);
 
-#if wxUSE_IMAGE_IN_DRAGIMAGE
+#if wxUSE_IMAGE_IN_DRAGIMAGE && (!defined(__WXMSW__) || wxUSE_WXDIB)
     // Make the bitmap masked
     wxImage image = bitmap.ConvertToImage();
     image.SetMaskColour(255, 255, 255);