Fix content scale factor returned by wxScreenDC on Mac

This commit is contained in:
Stefan Csomor
2020-07-19 15:14:21 +02:00
committed by Vadim Zeitlin
parent 1deb003a7c
commit 984e222519

View File

@@ -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()