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:
@@ -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))
|
||||
|
Reference in New Issue
Block a user