]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/dcclient.cpp
Updated version to 2.3.2 so apps can test for differences in new merged source
[wxWidgets.git] / src / gtk / dcclient.cpp
index 0d0376f8e02e8ba9930318f5ec959bfc8406a15e..8a507fb23addc90696283a0a75cd8edf17801511 100644 (file)
@@ -2102,6 +2102,8 @@ IMPLEMENT_DYNAMIC_CLASS(wxClientDC, wxWindowDC)
 wxClientDC::wxClientDC( wxWindow *win )
           : wxWindowDC( win )
 {
+    wxCHECK_RET( win, _T("NULL window in wxClientDC::wxClientDC") );
+
 #ifdef __WXUNIVERSAL__
     wxPoint ptOrigin = win->GetClientAreaOrigin();
     SetDeviceOrigin(ptOrigin.x, ptOrigin.y);
@@ -2110,6 +2112,13 @@ wxClientDC::wxClientDC( wxWindow *win )
 #endif // __WXUNIVERSAL__
 }
 
+void wxClientDC::DoGetSize(int *width, int *height) const
+{
+    wxCHECK_RET( m_owner, _T("GetSize() doesn't work without window") );
+
+    m_owner->GetClientSize( width, height );
+}
+
 // ----------------------------------------------------------------------------
 // wxDCModule
 // ----------------------------------------------------------------------------