X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e1a688e45e02b82e0b85001ee5a85d542a9c0acd..31ad423e4fb556ec225a63b161154d3bf3445c1b:/src/os2/dcprint.cpp?ds=sidebyside diff --git a/src/os2/dcprint.cpp b/src/os2/dcprint.cpp index a19603a979..7497cdee96 100644 --- a/src/os2/dcprint.cpp +++ b/src/os2/dcprint.cpp @@ -18,6 +18,7 @@ #include #ifndef WX_PRECOMP +#include "wx/app.h" #endif #include "wx/string.h" @@ -41,7 +42,6 @@ wxPrinterDC::wxPrinterDC( , int nOrientation ) { - LONG lType = 0; DEVOPENSTRUC vDevOpen = { (char*)rsDeviceName.c_str() ,(char*)rsDriverName.c_str() ,NULL @@ -232,7 +232,7 @@ void wxPrinterDC::EndPage() // if (m_hDC) // ::EndPage((HDC) m_hDC); } // end of wxPrinterDC::EndPage - +#if 0 // Returns default device and port names static bool wxGetDefaultDeviceName( wxString& rsDeviceName @@ -294,6 +294,7 @@ static bool wxGetDefaultDeviceName( */ return(TRUE); } // end of wxGetDefaultDeviceName +#endif // Gets an HDC for the specified printer configuration WXHDC WXDLLEXPORT wxGetPrinterDC( @@ -355,8 +356,8 @@ void wxPrinterDC::DoDrawBitmap( { wxCHECK_RET( rBmp.Ok(), _T("invalid bitmap in wxPrinterDC::DrawBitmap") ); - int nWidth = rBmp.GetWidth(); - int nHeight = rBmp.GetHeight(); +// int nWidth = rBmp.GetWidth(); +// int nHeight = rBmp.GetHeight(); // TODO: @@ -372,6 +373,8 @@ bool wxPrinterDC::DoBlit( , wxCoord vYsrc , int nRop , bool bUseMask +, wxCoord xsrcMask +, wxCoord ysrcMask ) { bool bSuccess = TRUE;