git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52342
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
void wxGCDCImpl::DoGetSize(int *width, int *height) const
{
void wxGCDCImpl::DoGetSize(int *width, int *height) const
{
- *width = 10000;
- *height = 10000;
+ wxCHECK_RET( IsOk(), wxT("wxGCDC(cg)::DoGetSize - invalid DC") );
+ wxDouble w,h;
+ m_graphicContext->GetSize( &w, &h );
+ if ( height )
+ *height = (int) (h+0.5);
+ if ( width )
+ *width = (int) (w+0.5);
}
void wxGCDCImpl::DoGradientFillLinear(const wxRect& rect,
}
void wxGCDCImpl::DoGradientFillLinear(const wxRect& rect,