From b9544e7e5dbe5f7c6a9103eb61f11895ede13466 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Wed, 6 Jul 2011 12:59:26 +0000 Subject: Fix up RISC OS for r12574 API change. svn path=/trunk/netsurf/; revision=12582 --- riscos/window.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'riscos/window.c') diff --git a/riscos/window.c b/riscos/window.c index b502fc8b0..35af9bcfd 100644 --- a/riscos/window.c +++ b/riscos/window.c @@ -753,8 +753,7 @@ void gui_window_redraw_window(struct gui_window *g) * \param data content_msg_data union with filled in redraw data */ -void gui_window_update_box(struct gui_window *g, - const union content_msg_data *data) +void gui_window_update_box(struct gui_window *g, const struct rect *rect) { hlcache_handle *h = g->bw->current_content; bool use_buffer; @@ -764,10 +763,10 @@ void gui_window_update_box(struct gui_window *g, if (!h) return; - x0 = floorf(data->redraw.x * 2 * g->bw->scale); - y0 = -ceilf((data->redraw.y + data->redraw.height) * 2 * g->bw->scale); - x1 = ceilf((data->redraw.x + data->redraw.width) * 2 * g->bw->scale) + 1; - y1 = -floorf(data->redraw.y * 2 * g->bw->scale) + 1; + x0 = floorf(rect->x0 * 2 * g->bw->scale); + y0 = -ceilf(rect->y1 * 2 * g->bw->scale); + x1 = ceilf(rect->x1 * 2 * g->bw->scale) + 1; + y1 = -floorf(rect->y0 * 2 * g->bw->scale) + 1; use_buffer = (g->option.buffer_everything || g->option.buffer_animations); -- cgit v1.2.3