diff options
| author | Brendan Shanks | 2019-02-01 08:12:25 +0100 |
|---|---|---|
| committer | Gerd Hoffmann | 2019-02-05 09:59:50 +0100 |
| commit | 5e24600a7c1cb530c0fed3c699c4d08f16d69b8e (patch) | |
| tree | 80687ab5ee056b056b3325ef79ec3b6e0bad1053 /scripts/switch-timer-api | |
| parent | ui/sdl_keysym: Remove obsolete SDL1.2 related code (diff) | |
| download | qemu-5e24600a7c1cb530c0fed3c699c4d08f16d69b8e.tar.gz qemu-5e24600a7c1cb530c0fed3c699c4d08f16d69b8e.tar.xz qemu-5e24600a7c1cb530c0fed3c699c4d08f16d69b8e.zip | |
ui/cocoa.m: Fix macOS 10.14 deprecation warnings
macOS 10.14 deprecated NSOnState/NSOffState in favour of
NSControlStateValueOn/NSControlStateValueOff. Use the new constants,
and #define them to the old ones when compiling against a pre-10.13 SDK.
Also [NSGraphicsContext graphicsPort] is now deprecated, use
[NSGraphicsContext CGContext] when available.
Signed-off-by: Brendan Shanks <brendan@bslabs.net>
Message-id: 20190201071225.20576-1-brendan@bslabs.net
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'scripts/switch-timer-api')
0 files changed, 0 insertions, 0 deletions
