]> git.saurik.com Git - wxWidgets.git/blobdiff - src/osx/cocoa/utils.mm
minor fixes; replace references to Windows95 with references to wxMSW where possible
[wxWidgets.git] / src / osx / cocoa / utils.mm
index d2374b6b8c12c1ead718ac5b9d0947f53d22b477..ab7f2f4cff67b3bae7a2b2adb4de392d94310afe 100644 (file)
@@ -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) );