From b3818f53812053e94196a58bbe474e2c3b72ac69 Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Tue, 3 Jun 2014 09:16:32 +0300 Subject: WaE: 'setFlipped' is deprecated: first deprecated in OS X 10.6 Not sure if using lockFocusFlipped: has the same effect, but will see... Change-Id: I957874bcf59c2c521bd5b2b2ca6f44fb0400e64f --- vcl/osx/salinst.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'vcl/osx/salinst.cxx') diff --git a/vcl/osx/salinst.cxx b/vcl/osx/salinst.cxx index 7936b4a99f00..9e9b35cc2fc6 100644 --- a/vcl/osx/salinst.cxx +++ b/vcl/osx/salinst.cxx @@ -1049,8 +1049,7 @@ NSImage* CreateNSImage( const Image& rImage ) NSImage* pImage = [[NSImage alloc] initWithSize: NSMakeSize( aSize.Width(), aSize.Height() )]; if( pImage ) { - [pImage setFlipped: YES]; - [pImage lockFocus]; + [pImage lockFocusFlipped:YES]; NSGraphicsContext* pContext = [NSGraphicsContext currentContext]; CGContextRef rCGContext = reinterpret_cast([pContext graphicsPort]); -- cgit