]> Git Repo - qemu.git/commitdiff
ui/cocoa.m: Fix compile failures introduced by recent console changes
authorPeter Maydell <[email protected]>
Mon, 18 Mar 2013 20:28:21 +0000 (20:28 +0000)
committerAnthony Liguori <[email protected]>
Tue, 19 Mar 2013 12:59:39 +0000 (07:59 -0500)
Fix various compilation failures introduced by the recent console
changes.

Signed-off-by: Peter Maydell <[email protected]>
Message-id: 1363638501[email protected]
Signed-off-by: Anthony Liguori <[email protected]>
ui/cocoa.m

index 8e0eaa26019789ec3a1a08fefa6e5727d4d19bde..048cc97347fad6f13cbe8b865806042be267350e 100644 (file)
@@ -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)
This page took 0.029095 seconds and 4 git commands to generate.