implemented wxDC::DoGetSize() correctly for metafile DC classes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36566 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -243,6 +243,16 @@ void wxMetafileDC::GetTextExtent(const wxString& string, long *x, long *y,
|
||||
*externalLeading = tm.tmExternalLeading;
|
||||
}
|
||||
|
||||
void wxMetafileDC::DoGetSize(int *width, int *height) const
|
||||
{
|
||||
wxCHECK_RET( m_refData, _T("invalid wxMetafileDC") );
|
||||
|
||||
if ( width )
|
||||
*width = M_METAFILEDATA->m_width;
|
||||
if ( height )
|
||||
*height = M_METAFILEDATA->m_height;
|
||||
}
|
||||
|
||||
wxMetafile *wxMetafileDC::Close()
|
||||
{
|
||||
SelectOldObjects(m_hDC);
|
||||
|
Reference in New Issue
Block a user