]> git.saurik.com Git - wxWidgets.git/commitdiff
have at least a measuring context available
authorStefan Csomor <csomor@advancedconcepts.ch>
Wed, 15 Apr 2009 20:43:55 +0000 (20:43 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Wed, 15 Apr 2009 20:43:55 +0000 (20:43 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60178 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/osx/carbon/dcscreen.cpp

index 4aaaa1377cf313bdf26c2e1effc13d2eda33416b..5622d557a76672760f73106f9aaacd4e072d4e47 100644 (file)
@@ -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());