Kaydet (Commit) f711b333 authored tarafından Douglas Mencken's avatar Douglas Mencken Kaydeden (comit) Norbert Thiebaud

fix 'NSImage' may not respond to '-lockFocusFlipped:'

related commit: b3818f53

Change-Id: Ica27b3c2e474ebb85a69149e35021835f8183b69
Reviewed-on: https://gerrit.libreoffice.org/10011Reviewed-by: 's avatarNorbert Thiebaud <nthiebaud@gmail.com>
Tested-by: 's avatarNorbert Thiebaud <nthiebaud@gmail.com>
üst 9746dc9a
......@@ -1049,8 +1049,12 @@ NSImage* CreateNSImage( const Image& rImage )
NSImage* pImage = [[NSImage alloc] initWithSize: NSMakeSize( aSize.Width(), aSize.Height() )];
if( pImage )
{
#if MAC_OS_X_VERSION_MAX_ALLOWED < 1060
[pImage setFlipped:YES];
[pImage lockFocus];
#else
[pImage lockFocusFlipped:YES];
#endif
NSGraphicsContext* pContext = [NSGraphicsContext currentContext];
CGContextRef rCGContext = reinterpret_cast<CGContextRef>([pContext graphicsPort]);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment