diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2011-07-06 12:59:26 +0000 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2011-07-06 12:59:26 +0000 |
commit | b9544e7e5dbe5f7c6a9103eb61f11895ede13466 (patch) | |
tree | f0d00227b36a97259dbc536bea2480c5e54f6ef4 /riscos | |
parent | ad205c1d6630b888ffd24fe884f158f769a5f2e5 (diff) | |
download | netsurf-b9544e7e5dbe5f7c6a9103eb61f11895ede13466.tar.gz netsurf-b9544e7e5dbe5f7c6a9103eb61f11895ede13466.tar.bz2 |
Fix up RISC OS for r12574 API change.
svn path=/trunk/netsurf/; revision=12582
Diffstat (limited to 'riscos')
-rw-r--r-- | riscos/window.c | 11 |
1 files changed, 5 insertions, 6 deletions
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); |