summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorrbuj <robert.buj@gmail.com>2014-07-08 01:03:00 +0200
committerCaolán McNamara <caolanm@redhat.com>2014-07-11 10:16:22 +0000
commiteefcbdcfdeafd23d5a002d0718d8574453f87458 (patch)
treeea181aba77278ae263fd5523ca5f9278d9c48c6d /vcl
parent402bde9397e98d464aa4f30a46fbff3cea958058 (diff)
-Wdeprecated-declarations: first deprecated in OS X 10.10
vcl/osx/salframeview.mm:201:16: warning: 'useOptimizedDrawing:' is deprecated: first deprecated in OS X 10.10 [-Wdeprecated-declarations] Change-Id: I6025de6c23a73c625ddfe8398dfd91bd838fe83c Reviewed-on: https://gerrit.libreoffice.org/10122 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/osx/salframeview.mm2
1 files changed, 2 insertions, 0 deletions
diff --git a/vcl/osx/salframeview.mm b/vcl/osx/salframeview.mm
index 76fc384c6ac4..57d251fd2f9a 100644
--- a/vcl/osx/salframeview.mm
+++ b/vcl/osx/salframeview.mm
@@ -198,7 +198,9 @@ static AquaSalFrame* getMouseContainerFrame()
{ static_cast<CGFloat>(pFrame->maGeometry.nWidth), static_cast<CGFloat>(pFrame->maGeometry.nHeight) } };
pFrame->VCLToCocoa( aRect );
NSWindow* pNSWindow = [super initWithContentRect: aRect styleMask: mpFrame->getStyleMask() backing: NSBackingStoreBuffered defer: NO ];
+#if MACOSX_SDK_VERSION < 101000
[pNSWindow useOptimizedDrawing: YES]; // OSX recommendation when there are no overlapping subviews within the receiver
+#endif
// enable OSX>=10.7 fullscreen options if available and useful
bool bAllowFullScreen = (0 == (mpFrame->mnStyle & (SAL_FRAME_STYLE_DIALOG | SAL_FRAME_STYLE_TOOLTIP | SAL_FRAME_STYLE_SYSTEMCHILD | SAL_FRAME_STYLE_FLOAT | SAL_FRAME_STYLE_TOOLWINDOW | SAL_FRAME_STYLE_INTRO)));