diff options
author | Herbert Duerr [hdu] <herbert.duerr@oracle.com> | 2010-11-09 15:42:55 +0100 |
---|---|---|
committer | Herbert Duerr [hdu] <herbert.duerr@oracle.com> | 2010-11-09 15:42:55 +0100 |
commit | 2d2592be455526fd7bfa9611eb166f37193fd4d3 (patch) | |
tree | f338c26312b190588e4303dfa263a17071956406 /vcl/aqua/source/window | |
parent | 65dcdf44cec6dfdad0b90250c579a66968417677 (diff) |
enable optimized drawing for NSWindows
Diffstat (limited to 'vcl/aqua/source/window')
-rwxr-xr-x | vcl/aqua/source/window/salframeview.mm | 4 |
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 |