X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2d2b68baa3414a496bae9be99095e02f3b82a2df..9ab7ff537d1ead0f0b07c14841474203c7fa59ba:/src/msw/dcprint.cpp?ds=sidebyside diff --git a/src/msw/dcprint.cpp b/src/msw/dcprint.cpp index 7eac01116f..16402f760e 100644 --- a/src/msw/dcprint.cpp +++ b/src/msw/dcprint.cpp @@ -228,7 +228,7 @@ void wxPrinterDCImpl::EndPage() } -wxRect wxPrinterDCImpl::GetPaperRect() +wxRect wxPrinterDCImpl::GetPaperRect() const { if (!IsOk()) return wxRect(0, 0, 0, 0); @@ -337,10 +337,12 @@ WXHDC WXDLLEXPORT wxGetPrinterDC(const wxPrintData& printDataConst) NULL, // no driver name as we use device name deviceName.wx_str(), NULL, // unused - wx_static_cast(DEVMODE *, lockDevMode.Get()) + static_cast(lockDevMode.Get()) ); if ( !hDC ) - wxLogLastError(_T("CreateDC(printer)")); + { + wxLogLastError(wxT("CreateDC(printer)")); + } return (WXHDC) hDC; #endif // PostScript/Windows printing @@ -365,7 +367,7 @@ bool DrawBitmapUsingStretchDIBits(HDC hdc, DIBSECTION ds; if ( !::GetObject(dib.GetHandle(), sizeof(ds), &ds) ) { - wxLogLastError(_T("GetObject(DIBSECTION)")); + wxLogLastError(wxT("GetObject(DIBSECTION)")); return false; } @@ -399,7 +401,7 @@ void wxPrinterDCImpl::DoDrawBitmap(const wxBitmap& bmp, wxCoord x, wxCoord y, bool useMask) { - wxCHECK_RET( bmp.Ok(), _T("invalid bitmap in wxPrinterDC::DrawBitmap") ); + wxCHECK_RET( bmp.Ok(), wxT("invalid bitmap in wxPrinterDC::DrawBitmap") ); int width = bmp.GetWidth(), height = bmp.GetHeight(); @@ -422,7 +424,7 @@ bool wxPrinterDCImpl::DoBlit(wxCoord xdest, wxCoord ydest, wxCoord width, wxCoord height, wxDC *source, wxCoord WXUNUSED(xsrc), wxCoord WXUNUSED(ysrc), - int WXUNUSED(rop), bool useMask, + wxRasterOperationMode WXUNUSED(rop), bool useMask, wxCoord WXUNUSED(xsrcMask), wxCoord WXUNUSED(ysrcMask)) { wxDCImpl *impl = source->GetImpl();