Message ID | 4C3FB55A-B9EE-4A9F-9B06-CEB84CBC3CD5@gmail.com |
---|---|
State | New |
Headers | show |
On 20 January 2015 at 19:51, Programmingkid <programmingkidx@gmail.com> wrote: > This patch makes the -full-screen option actually instruct QEMU to > enter fullscreen at startup, on Mac OS X. > > Signed-off-by: John Arbuckle <programmingkidx@gmail.com> Reviewed-by: Peter Maydell <peter.maydell@linaro.org> and I'll apply this to my target-cocoa queue. Note to self: this should go after the other patch to fix fullscreen, ideally. thanks -- PMM
diff --git a/ui/cocoa.m b/ui/cocoa.m index d37c29b..081d4f2 100644 --- a/ui/cocoa.m +++ b/ui/cocoa.m @@ -1120,6 +1120,12 @@ void cocoa_display_init(DisplayState *ds, int full_screen) { COCOA_DEBUG("qemu_cocoa: cocoa_display_init\n"); + /* if fullscreen mode is to be used */ + if (full_screen == true) { + [NSApp activateIgnoringOtherApps: YES]; + [(QemuCocoaAppController *)[[NSApplication sharedApplication] delegate] toggleFullScreen: nil]; + } + dcl = g_malloc0(sizeof(DisplayChangeListener)); // register vga output callbacks
This patch makes the -full-screen option actually instruct QEMU to enter fullscreen at startup, on Mac OS X. Signed-off-by: John Arbuckle <programmingkidx@gmail.com> --- Eliminated compile warning. ui/cocoa.m | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-)