From 41ebd942f91ba86f20396afd884a208ef93c93c9 Mon Sep 17 00:00:00 2001 From: Sven Weidauer Date: Sat, 23 Dec 2017 12:28:36 +0100 Subject: Update content_broadcast calls. --- frontends/cocoa/apple_image.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'frontends/cocoa') diff --git a/frontends/cocoa/apple_image.m b/frontends/cocoa/apple_image.m index cee9c2773..596340965 100644 --- a/frontends/cocoa/apple_image.m +++ b/frontends/cocoa/apple_image.m @@ -88,7 +88,7 @@ static void animate_image_cb(void *ptr) data.redraw.width = data.redraw.object_width = ai->base.width; data.redraw.height = data.redraw.object_height = ai->base.height; data.redraw.object = &ai->base; - content_broadcast(&ai->base, CONTENT_MSG_REDRAW, data); + content_broadcast(&ai->base, CONTENT_MSG_REDRAW, &data); cocoa_schedule(ai->frameTimes[ai->currentFrame], animate_image_cb, ai); } @@ -108,7 +108,7 @@ static bool apple_image_convert(struct content *c) if (image == nil) { union content_msg_data msg_data; msg_data.error = "cannot decode image"; - content_broadcast(c, CONTENT_MSG_ERROR, msg_data); + content_broadcast(c, CONTENT_MSG_ERROR, &msg_data); return false; } -- cgit v1.2.3