adding magnification API into the wxWindow classes for best retina support

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74247 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor
2013-06-17 17:41:34 +00:00
parent 5fbd55b946
commit f86190702b
8 changed files with 30 additions and 0 deletions

View File

@@ -877,6 +877,13 @@ void wxWindowMac::DoGetClientSize( int *x, int *y ) const
*y = hh;
}
double wxWindowMac::GetMagnificationFactor() const
{
wxNonOwnedWindow* tlw = MacGetTopLevelWindow() ;
wxCHECK_MSG( tlw , 1.0, wxT("TopLevel Window missing") ) ;
return tlw->GetMagnificationFactor();
}
bool wxWindowMac::SetCursor(const wxCursor& cursor)
{
if (m_cursor.IsSameAs(cursor))