diff options
author | Sven Weidauer <sven@5sw.de> | 2017-12-23 12:28:36 +0100 |
---|---|---|
committer | Sven Weidauer <sven@5sw.de> | 2017-12-23 12:28:36 +0100 |
commit | 41ebd942f91ba86f20396afd884a208ef93c93c9 (patch) | |
tree | ac87bf25b04cc612ed8dd423be39c1e9c49ab974 /frontends/cocoa | |
parent | afa0de1ce3f5de4ad732c3ed98eb4ff8dcf9ac92 (diff) | |
download | netsurf-41ebd942f91ba86f20396afd884a208ef93c93c9.tar.gz netsurf-41ebd942f91ba86f20396afd884a208ef93c93c9.tar.bz2 |
Update content_broadcast calls.
Diffstat (limited to 'frontends/cocoa')
-rw-r--r-- | frontends/cocoa/apple_image.m | 4 |
1 files changed, 2 insertions, 2 deletions
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; } |