Received: from eggs.gnu.org ([208.118.235.92]:41305) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UHgfX-0004Mc-Id for qemu-devel@nongnu.org; Mon, 18 Mar 2013 16:28:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UHgfU-00030E-M9 for qemu-devel@nongnu.org; Mon, 18 Mar 2013 16:28:31 -0400 Received: from 1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.d.1.0.0.b.8.0.1.0.0.2.ip6.arpa ([2001:8b0:1d0::1]:33011 helo=mnementh.archaic.org.uk) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UHgfU-0002zu-F0 for qemu-devel@nongnu.org; Mon, 18 Mar 2013 16:28:28 -0400 From: Peter Maydell Date: Mon, 18 Mar 2013 20:28:21 +0000 Message-Id: <1363638501-29603-1-git-send-email-peter.maydell@linaro.org> Subject: [Qemu-devel] [PATCH] ui/cocoa.m: Fix compile failures introduced by recent console changes List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Andreas=20F=C3=A4rber?= , Gerd Hoffmann , Anthony Liguori , patches@linaro.org Fix various compilation failures introduced by the recent console changes. Signed-off-by: Peter Maydell --- ui/cocoa.m | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/ui/cocoa.m b/ui/cocoa.m index 8e0eaa2..048cc97 100644 --- a/ui/cocoa.m +++ b/ui/cocoa.m @@ -403,6 +403,9 @@ QemuCocoaView *cocoaView; { COCOA_DEBUG("QemuCocoaView: switchSurface\n"); + int w = surface_width(surface); + int h = surface_height(surface); + // update screenBuffer if (dataProviderRef) CGDataProviderRelease(dataProviderRef); @@ -1014,9 +1017,9 @@ static void cocoa_cleanup(void) static const DisplayChangeListenerOps dcl_ops = { .dpy_name = "cocoa", - .dpy_gfx_update = cocoa_update; - .dpy_gfx_switch = cocoa_switch; - .dpy_refresh = cocoa_refresh; + .dpy_gfx_update = cocoa_update, + .dpy_gfx_switch = cocoa_switch, + .dpy_refresh = cocoa_refresh, }; void cocoa_display_init(DisplayState *ds, int full_screen) -- 1.7.11.4