From 5a8ea512bb3b7a9d743d26cd706c034d82120b3b Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Wed, 15 Apr 2009 20:43:55 +0000 Subject: [PATCH] have at least a measuring context available git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60178 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/osx/carbon/dcscreen.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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()); -- 2.47.2