X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6d50343d87bec1ad537a74c43e2ed2a114574a5a..062dfc9a96dc9e796c53544f41ff92dc47f26e82:/src/palmos/dcprint.cpp?ds=sidebyside diff --git a/src/palmos/dcprint.cpp b/src/palmos/dcprint.cpp index fae66da4eb..e39bb02e60 100644 --- a/src/palmos/dcprint.cpp +++ b/src/palmos/dcprint.cpp @@ -62,7 +62,7 @@ wxPrinterDC::wxPrinterDC(const wxString& driver_name, const wxString& device_name, const wxString& file, bool interactive, - int orientation) + wxPrintOrientation orientation) { } @@ -100,6 +100,14 @@ void wxPrinterDC::EndPage() { } +wxRect wxPrinterDC::GetPaperRect() const +{ + // Use page rect if we can't get paper rect. + wxCoord w, h; + GetSize(&w, &h); + return wxRect(0, 0, w, h); +} + // Returns default device and port names static bool wxGetDefaultDeviceName(wxString& deviceName, wxString& portName) { @@ -135,7 +143,7 @@ bool wxPrinterDC::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)) { return false;