summaryrefslogtreecommitdiff
path: root/vcl/aqua/source/window
diff options
context:
space:
mode:
authorHerbert Duerr [hdu] <herbert.duerr@oracle.com>2010-11-09 15:42:55 +0100
committerHerbert Duerr [hdu] <herbert.duerr@oracle.com>2010-11-09 15:42:55 +0100
commit2d2592be455526fd7bfa9611eb166f37193fd4d3 (patch)
treef338c26312b190588e4303dfa263a17071956406 /vcl/aqua/source/window
parent65dcdf44cec6dfdad0b90250c579a66968417677 (diff)
enable optimized drawing for NSWindows
Diffstat (limited to 'vcl/aqua/source/window')
-rwxr-xr-xvcl/aqua/source/window/salframeview.mm4
1 files changed, 3 insertions, 1 deletions
diff --git a/vcl/aqua/source/window/salframeview.mm b/vcl/aqua/source/window/salframeview.mm
index 240a915e4e12..bc87ea444710 100755
--- a/vcl/aqua/source/window/salframeview.mm
+++ b/vcl/aqua/source/window/salframeview.mm
@@ -154,7 +154,9 @@ static AquaSalFrame* getMouseContainerFrame()
NSRect aRect = { { pFrame->maGeometry.nX, pFrame->maGeometry.nY },
{ pFrame->maGeometry.nWidth, pFrame->maGeometry.nHeight } };
pFrame->VCLToCocoa( aRect );
- return [super initWithContentRect: aRect styleMask: mpFrame->getStyleMask() backing: NSBackingStoreBuffered defer: NO ];
+ NSWindow* pNSWindow = [super initWithContentRect: aRect styleMask: mpFrame->getStyleMask() backing: NSBackingStoreBuffered defer: NO ];
+ [pNSWindow useOptimizedDrawing: YES]; // OSX recommendation when there are no overlapping subviews within the receiver
+ return pNSWindow;
}
-(AquaSalFrame*)getSalFrame