projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Can wxMemoryDC derive from wxWindowDC on all platforms?
[wxWidgets.git]
/
src
/
os2
/
dcprint.cpp
diff --git
a/src/os2/dcprint.cpp
b/src/os2/dcprint.cpp
index e71b9dc084f2c27935d15bc29d88fdd6980bd137..30ba0d7c3a2782b32ab8e5b1d58a92d51ca95232 100644
(file)
--- a/
src/os2/dcprint.cpp
+++ b/
src/os2/dcprint.cpp
@@
-223,6
+223,15
@@
void wxPrinterDC::EndPage()
// if (m_hDC)
// ::EndPage((HDC) m_hDC);
} // end of wxPrinterDC::EndPage
// if (m_hDC)
// ::EndPage((HDC) m_hDC);
} // end of wxPrinterDC::EndPage
+
+wxRect wxPrinterDC::GetPaperRect()
+{
+ // Use page rect if we can't get paper rect.
+ wxCoord w, h;
+ GetSize(&w, &h);
+ return wxRect(0, 0, w, h);
+}
+
#if 0
// Returns default device and port names
static bool wxGetDefaultDeviceName( wxString& rsDeviceName, wxString& rsPortName )
#if 0
// Returns default device and port names
static bool wxGetDefaultDeviceName( wxString& rsDeviceName, wxString& rsPortName )