From: Stefan Csomor Date: Wed, 15 Apr 2009 20:43:55 +0000 (+0000) Subject: have at least a measuring context available X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/5a8ea512bb3b7a9d743d26cd706c034d82120b3b have at least a measuring context available git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60178 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/osx/carbon/dcscreen.cpp b/src/osx/carbon/dcscreen.cpp index 4aaaa1377c..5622d557a7 100644 --- a/src/osx/carbon/dcscreen.cpp +++ b/src/osx/carbon/dcscreen.cpp @@ -31,8 +31,8 @@ wxScreenDCImpl::wxScreenDCImpl( wxDC *owner ) : wxWindowDCImpl( owner ) { #if wxOSX_USE_COCOA_OR_IPHONE - m_graphicContext = NULL; - m_ok = false ; + SetGraphicsContext( wxGraphicsContext::Create() ); + m_ok = true ; #else CGRect cgbounds ; cgbounds = CGDisplayBounds(CGMainDisplayID());