Skip to contentSkip to conversation

ui/cocoa.m: Fix compile failures introduced by recent console changes

PATCH Applied Peter Maydell 3 participants 3 messages Mar 18, 2013 – Mar 19, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ui/cocoa.m: Fix compile failures introduced by recent console changes

Fix various compilation failures introduced by the recent console changes.

---
 ui/cocoa.m | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)
ui/cocoa.m +6 -3
index 8e0eaa2..048cc97 100644
@@ -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)
Signature · 1 line
1.7.11.4
Acked-by on v1 1/1
#1 lore raw
Quoted 25 lines · Peter Maydell

Fix various compilation failures introduced by the recent console changes.

---
 ui/cocoa.m | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)
ui/cocoa.m +3 -0
index 8e0eaa2..048cc97 100644
@@ -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 = {

ui/cocoa.m static void cocoa_cleanup(void) · line 1025

Quoted 10 lines
ui/cocoa.m +3 -3
     .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)

[ I'll go pick it into the next console patch series, but wouldn't
mind if someone applies this directly to fix the macos build ].

cheers,
Gerd