]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/dcprint.cpp
If zero time is specified, don't try to sleep when using a timer.
[wxWidgets.git] / src / msw / dcprint.cpp
index 9ae94b59e17f4f2690263320230f780175ca491c..adc0e859306003c92040058fcd97d4d07870e52d 100644 (file)
@@ -41,7 +41,7 @@
 #include "wx/dcprint.h"
 #include "math.h"
 
-#if wxUSE_COMMON_DIALOGS || defined(__WXWINE__)
+#if wxUSE_COMMON_DIALOGS
     #include <commdlg.h>
 #endif
 
@@ -432,7 +432,7 @@ void wxPrinterDC::DoDrawBitmap(const wxBitmap &bmp,
     if ( ::GetDeviceCaps(GetHdc(), RASTERCAPS) & RC_STRETCHDIB )
     {
 #if wxUSE_DIB_FOR_BITMAP
-        if(bmp.GetHFileMap())   // we already have a dib
+        if ( bmp.IsDIB() )
         {
             DIBSECTION dib;
             if ( ::GetObject(GetHbitmapOf(bmp),
@@ -561,7 +561,7 @@ bool wxPrinterDC::DoBlit(wxCoord xdest, wxCoord ydest,
             int width = bmp.GetWidth(),
                 height = bmp.GetHeight();
 #if wxUSE_DIB_FOR_BITMAP
-            if(bmp.GetHFileMap())   // we already have a dib
+            if ( bmp.IsDIB() )
             {
                 DIBSECTION dib;
                 if( ::GetObject(GetHbitmapOf(bmp),