Fix content scale factor returned by wxScreenDC on Mac
This commit is contained in:
committed by
Vadim Zeitlin
parent
1deb003a7c
commit
984e222519
@@ -34,6 +34,7 @@ wxScreenDCImpl::wxScreenDCImpl( wxDC *owner ) :
|
|||||||
SetGraphicsContext( wxGraphicsContext::Create() );
|
SetGraphicsContext( wxGraphicsContext::Create() );
|
||||||
m_ok = true ;
|
m_ok = true ;
|
||||||
#endif
|
#endif
|
||||||
|
m_contentScaleFactor = wxOSXGetMainScreenContentScaleFactor();
|
||||||
}
|
}
|
||||||
|
|
||||||
wxScreenDCImpl::~wxScreenDCImpl()
|
wxScreenDCImpl::~wxScreenDCImpl()
|
||||||
|
Reference in New Issue
Block a user