summaryrefslogtreecommitdiff
path: root/render/search.c
diff options
context:
space:
mode:
authorMichael Drake <michael.drake@codethink.co.uk>2017-08-26 15:50:03 +0100
committerMichael Drake <michael.drake@codethink.co.uk>2017-08-26 15:50:03 +0100
commitd70beb28db6f978ae9fc674640f3101e20c05bb8 (patch)
tree44eb1e63f612675d75bceebbb85fcebb44588d49 /render/search.c
parentaedd9b55132bb48f6d25ae4c080dc0ce71efb44d (diff)
downloadnetsurf-d70beb28db6f978ae9fc674640f3101e20c05bb8.tar.gz
netsurf-d70beb28db6f978ae9fc674640f3101e20c05bb8.tar.bz2
Content API: Make content_broadcast take pointer to content_msg_data.
Diffstat (limited to 'render/search.c')
-rw-r--r--render/search.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/render/search.c b/render/search.c
index 4af6706a0..8f21d8758 100644
--- a/render/search.c
+++ b/render/search.c
@@ -538,7 +538,7 @@ static void search_text(const char *string, int string_len,
msg_data.scroll.y0 = bounds.y0;
msg_data.scroll.x1 = bounds.x1;
msg_data.scroll.y1 = bounds.y1;
- content_broadcast(context->c, CONTENT_MSG_SCROLL, msg_data);
+ content_broadcast(context->c, CONTENT_MSG_SCROLL, &msg_data);
}
@@ -571,7 +571,7 @@ void search_step(struct search_context *context, search_flags_t flags,
msg_data.scroll.area = false;
msg_data.scroll.x0 = 0;
msg_data.scroll.y0 = 0;
- content_broadcast(context->c, CONTENT_MSG_SCROLL, msg_data);
+ content_broadcast(context->c, CONTENT_MSG_SCROLL, &msg_data);
return;
}
search_text(string, string_len, context, flags);