bracket code not working on ios

This commit is contained in:
Stefan Csomor
2020-04-26 11:54:54 +02:00
parent 68b22e65b8
commit a235f8e04c

View File

@@ -26,12 +26,14 @@ wxIMPLEMENT_ABSTRACT_CLASS(wxScreenDCImpl, wxWindowDCImpl);
wxScreenDCImpl::wxScreenDCImpl( wxDC *owner ) : wxScreenDCImpl::wxScreenDCImpl( wxDC *owner ) :
wxWindowDCImpl( owner ) wxWindowDCImpl( owner )
{ {
#if !wxOSX_USE_IPHONE
CGRect cgbounds ; CGRect cgbounds ;
cgbounds = CGDisplayBounds(CGMainDisplayID()); cgbounds = CGDisplayBounds(CGMainDisplayID());
m_width = (wxCoord)cgbounds.size.width; m_width = (wxCoord)cgbounds.size.width;
m_height = (wxCoord)cgbounds.size.height; m_height = (wxCoord)cgbounds.size.height;
SetGraphicsContext( wxGraphicsContext::Create() ); SetGraphicsContext( wxGraphicsContext::Create() );
m_ok = true ; m_ok = true ;
#endif
} }
wxScreenDCImpl::~wxScreenDCImpl() wxScreenDCImpl::~wxScreenDCImpl()