using common GetContentScaleFactor throughout part 2/2
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74256 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -877,13 +877,6 @@ 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))
|
||||
@@ -1226,7 +1219,7 @@ void wxWindowMac::DoSetClientSize(int clientwidth, int clientheight)
|
||||
}
|
||||
}
|
||||
|
||||
float wxWindowMac::GetContentScaleFactor() const
|
||||
double wxWindowMac::GetContentScaleFactor() const
|
||||
{
|
||||
return GetPeer()->GetContentScaleFactor();
|
||||
}
|
||||
|
Reference in New Issue
Block a user