qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH v2] Makes -full-screen option work on Mac OS X


From: Peter Maydell
Subject: Re: [Qemu-devel] [PATCH v2] Makes -full-screen option work on Mac OS X
Date: Wed, 14 Jan 2015 17:09:44 +0000

On 12 January 2015 at 16:46, Programmingkid <address@hidden> wrote:
>  This patch makes the -full-screen option actually instruct QEMU to enter 
> fullscreen at startup.
>
> Signed-off-by: John Arbuckle <address@hidden>
>
> ---
> Removed the set_to_full_screen variable.
> Removed the scanForFullScreenOption() function.
>
>  ui/cocoa.m |    6 ++++++
>  1 files changed, 6 insertions(+), 0 deletions(-)
>
> diff --git a/ui/cocoa.m b/ui/cocoa.m
> index 685081e..4cb07ba 100644
> --- a/ui/cocoa.m
> +++ b/ui/cocoa.m
> @@ -1163,6 +1163,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];
> +        [[[NSApplication sharedApplication] delegate] toggleFullScreen: nil];
> +    }
> +
>      dcl = g_malloc0(sizeof(DisplayChangeListener));
>
>      // register vga output callbacks

This generates a compile warning for me:
/Users/pm215/src/qemu/ui/cocoa.m:1150:55: warning: instance method
'-toggleFullScreen:' not found (return type defaults to 'id')
      [-Wobjc-method-access]
        [[[NSApplication sharedApplication] delegate] toggleFullScreen: nil];
                                                      ^~~~~~~~~~~~~~~~

thanks
-- PMM



reply via email to

[Prev in Thread] Current Thread [Next in Thread]