mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06:00
ui/cocoa: Don't use NSWindow useOptimizedDrawing on OSX 10.10 and up
Starting in OSX 10.10, NSWindow useOptimizedDrawing is deprecated, so don't use it there. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Message-id: 1431296361-16981-6-git-send-email-peter.maydell@linaro.org
This commit is contained in:
parent
2a4c8c53da
commit
81801ae213
1 changed files with 5 additions and 0 deletions
|
@ -36,6 +36,9 @@
|
||||||
#ifndef MAC_OS_X_VERSION_10_6
|
#ifndef MAC_OS_X_VERSION_10_6
|
||||||
#define MAC_OS_X_VERSION_10_6 1060
|
#define MAC_OS_X_VERSION_10_6 1060
|
||||||
#endif
|
#endif
|
||||||
|
#ifndef MAC_OS_X_VERSION_10_10
|
||||||
|
#define MAC_OS_X_VERSION_10_10 101000
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
//#define DEBUG
|
//#define DEBUG
|
||||||
|
@ -824,7 +827,9 @@ QemuCocoaView *cocoaView;
|
||||||
[normalWindow setAcceptsMouseMovedEvents:YES];
|
[normalWindow setAcceptsMouseMovedEvents:YES];
|
||||||
[normalWindow setTitle:[NSString stringWithFormat:@"QEMU"]];
|
[normalWindow setTitle:[NSString stringWithFormat:@"QEMU"]];
|
||||||
[normalWindow setContentView:cocoaView];
|
[normalWindow setContentView:cocoaView];
|
||||||
|
#if (MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_10)
|
||||||
[normalWindow useOptimizedDrawing:YES];
|
[normalWindow useOptimizedDrawing:YES];
|
||||||
|
#endif
|
||||||
[normalWindow makeKeyAndOrderFront:self];
|
[normalWindow makeKeyAndOrderFront:self];
|
||||||
[normalWindow center];
|
[normalWindow center];
|
||||||
stretch_video = false;
|
stretch_video = false;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue