ui/cocoa.m: Fix compile failures introduced by recent console changes
PATCH 1/1 ui/cocoa.m: Fix compile failures introduced by recent console changes
Fix various compilation failures introduced by the recent console changes.
Signed-off-by Peter Maydell <[email protected]>
--- ui/cocoa.m | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-)
ui/cocoa.m +6 -3
@@ -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
Quoted 25 lines · Peter Maydell
Fix various compilation failures introduced by the recent console changes.
Signed-off-by Peter Maydell <[email protected]>--- ui/cocoa.m | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-)ui/cocoa.m +3
-0@@ -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)
Acked-by Gerd Hoffmann <[email protected]>
[ 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
Anthony Liguori
AppliedApplied. Thanks.
Regards,
Anthony Liguori