[Libreoffice-commits] core.git: vcl/osx
rbuj
robert.buj at gmail.com
Fri Jul 11 03:16:51 PDT 2014
vcl/osx/salframeview.mm | 2 ++
1 file changed, 2 insertions(+)
New commits:
commit eefcbdcfdeafd23d5a002d0718d8574453f87458
Author: rbuj <robert.buj at gmail.com>
Date: Tue Jul 8 01:03:00 2014 +0200
-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 at redhat.com>
Tested-by: Caolán McNamara <caolanm at redhat.com>
diff --git a/vcl/osx/salframeview.mm b/vcl/osx/salframeview.mm
index 76fc384..57d251f 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)));
More information about the Libreoffice-commits
mailing list