X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/fda7962d029672a5f4c718a3c6b2559856f4cd95..e3a6a6b2bc15ddda1d614dd232d37e59ad024044:/src/msw/dcprint.cpp diff --git a/src/msw/dcprint.cpp b/src/msw/dcprint.cpp index 51f6c9c01e..aac533377b 100644 --- a/src/msw/dcprint.cpp +++ b/src/msw/dcprint.cpp @@ -38,7 +38,11 @@ #if wxUSE_PRINTING_ARCHITECTURE #include "wx/msw/private.h" + +#if wxUSE_WXDIB #include "wx/msw/dib.h" +#endif + #include "wx/dcprint.h" #include "math.h" @@ -341,6 +345,7 @@ bool DrawBitmapUsingStretchDIBits(HDC hdc, const wxBitmap& bmp, wxCoord x, wxCoord y) { +#if wxUSE_WXDIB wxDIB dib(bmp); if ( !dib.IsOk() ) return FALSE; @@ -373,6 +378,9 @@ bool DrawBitmapUsingStretchDIBits(HDC hdc, } return TRUE; +#else + return FALSE; +#endif } void wxPrinterDC::DoDrawBitmap(const wxBitmap& bmp,