X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/928e7a7e1b5bdaa2a475c2bfbe0f4679baf653e1..01a33e96707668beb5612d69d508d8556a2285a7:/src/osx/cocoa/utils.mm?ds=sidebyside diff --git a/src/osx/cocoa/utils.mm b/src/osx/cocoa/utils.mm index d2374b6b8c..ab7f2f4cff 100644 --- a/src/osx/cocoa/utils.mm +++ b/src/osx/cocoa/utils.mm @@ -163,7 +163,7 @@ wxBitmap wxWindowDCImpl::DoGetAsBitmap(const wxRect *subrect) const NSBitmapImageRep *rep = [[[NSBitmapImageRep alloc] initWithFocusedViewRect: [view bounds]] retain]; [view unlockFocus]; - CGImageRef cgImageRef = [rep CGImage]; + CGImageRef cgImageRef = (CGImageRef)[rep CGImage]; wxBitmap bitmap(CGImageGetWidth(cgImageRef) , CGImageGetHeight(cgImageRef) ); CGRect r = CGRectMake( 0 , 0 , CGImageGetWidth(cgImageRef) , CGImageGetHeight(cgImageRef) );