diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2018-02-02 12:10:19 +0100 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2018-02-20 12:12:04 +0100 |
commit | 767f9bf3b5621acfe97e53d3a3a7bddf66c39ff6 (patch) | |
tree | 0ed63d6e890e297d115d8d94743ff9cd9f453743 /ui/cocoa.m | |
parent | 14f130fad872f7accef77925288d730ecadded5d (diff) | |
download | qemu-767f9bf3b5621acfe97e53d3a3a7bddf66c39ff6.zip qemu-767f9bf3b5621acfe97e53d3a3a7bddf66c39ff6.tar.gz qemu-767f9bf3b5621acfe97e53d3a3a7bddf66c39ff6.tar.bz2 |
cocoa: use DisplayOptions
Switch cocoa ui to use qapi DisplayOptions for configuration.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-id: 20180202111022.19269-10-kraxel@redhat.com
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'ui/cocoa.m')
-rw-r--r-- | ui/cocoa.m | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1683,12 +1683,12 @@ static void addRemovableDevicesMenuItems(void) qapi_free_BlockInfoList(pointerToFree); } -void cocoa_display_init(DisplayState *ds, int full_screen) +void cocoa_display_init(DisplayState *ds, DisplayOptions *opts) { COCOA_DEBUG("qemu_cocoa: cocoa_display_init\n"); /* if fullscreen mode is to be used */ - if (full_screen == true) { + if (opts->has_full_screen && opts->full_screen) { [NSApp activateIgnoringOtherApps: YES]; [(QemuCocoaAppController *)[[NSApplication sharedApplication] delegate] toggleFullScreen: nil]; } |