X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e1a688e45e02b82e0b85001ee5a85d542a9c0acd..e09526489246ee620c62c1b5673d294fff89b736:/src/os2/dcscreen.cpp?ds=sidebyside

diff --git a/src/os2/dcscreen.cpp b/src/os2/dcscreen.cpp
index 3b3c6314b8..36f65d1de7 100644
--- a/src/os2/dcscreen.cpp
+++ b/src/os2/dcscreen.cpp
@@ -40,4 +40,17 @@ wxScreenDC::wxScreenDC()
     ::GpiSetBackMix(m_hPS, BM_LEAVEALONE);
 } // end of wxScreenDC::wxScreenDC()
 
+void wxScreenDC::DoGetSize(
+  int*                              pnWidth
+, int*                              pnHeight
+) const
+{
+    //
+    // Skip wxWindowDC version because it doesn't work without a valid m_canvas
+    // (which we don't have)
+    //
+    wxDC::DoGetSize( pnWidth
+                    ,pnHeight
+                   );
+} // end of wxScreenDC::DoGetSize