add fix for 32 bit builds, also when wx is drawing CGContextRef is always flipped

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@75998 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor
2014-02-24 08:10:26 +00:00
parent 5c32565ef1
commit c8b105a5f5

View File

@@ -456,8 +456,9 @@ WX_NSImage WXDLLIMPEXP_CORE wxOSXGetNSImageFromIconRef( WXHICON iconref )
CGImageRef WXDLLIMPEXP_CORE wxOSXGetCGImageFromNSImage( WX_NSImage nsimage, CGRect* r, CGContextRef cg) CGImageRef WXDLLIMPEXP_CORE wxOSXGetCGImageFromNSImage( WX_NSImage nsimage, CGRect* r, CGContextRef cg)
{ {
return [nsimage CGImageForProposedRect:r NSRect nsRect = NSRectFromCGRect(*r);
context:[NSGraphicsContext graphicsContextWithGraphicsPort:cg flipped:NO] return [nsimage CGImageForProposedRect:&nsRect
context:[NSGraphicsContext graphicsContextWithGraphicsPort:cg flipped:YES]
hints:nil]; hints:nil];
} }