summaryrefslogtreecommitdiff
path: root/vcl/osx
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2014-06-03 09:16:32 +0300
committerTor Lillqvist <tml@collabora.com>2014-06-03 21:29:05 +0300
commitb3818f53812053e94196a58bbe474e2c3b72ac69 (patch)
tree6dbfbb69faf545085a55467812f97c5cda6ba3f4 /vcl/osx
parent39ffccd26151d255168b072a2d439df48d172011 (diff)
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
Diffstat (limited to 'vcl/osx')
-rw-r--r--vcl/osx/salinst.cxx3
1 files changed, 1 insertions, 2 deletions
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<CGContextRef>([pContext graphicsPort]);