X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0becd470109886a71b5fb51c60f9842318eaeca9..00dd3b1897bd74276234f449f68e3f0805eb77dc:/src/msw/dcprint.cpp diff --git a/src/msw/dcprint.cpp b/src/msw/dcprint.cpp index 9ae94b59e1..adc0e85930 100644 --- a/src/msw/dcprint.cpp +++ b/src/msw/dcprint.cpp @@ -41,7 +41,7 @@ #include "wx/dcprint.h" #include "math.h" -#if wxUSE_COMMON_DIALOGS || defined(__WXWINE__) +#if wxUSE_COMMON_DIALOGS #include #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),