From 1b03b5dfae6fa5146d7b8ce9b84a6e8e0de4f033 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Wed, 6 Jul 2011 12:45:38 +0000 Subject: Fix up BeOS for r12574 API change. svn path=/trunk/netsurf/; revision=12577 --- beos/beos_window.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/beos/beos_window.cpp b/beos/beos_window.cpp index d7153fb79..7b0b835a1 100644 --- a/beos/beos_window.cpp +++ b/beos/beos_window.cpp @@ -1392,8 +1392,7 @@ void gui_window_redraw_window(struct gui_window *g) g->view->UnlockLooper(); } -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 *c = g->bw->current_content; @@ -1408,9 +1407,8 @@ void gui_window_update_box(struct gui_window *g, nsbeos_current_gc_set(g->view); //XXX +1 ?? - g->view->Invalidate(BRect(data->redraw.x, data->redraw.y, - data->redraw.x + data->redraw.width - 1, - data->redraw.y + data->redraw.height - 1)); + g->view->Invalidate(BRect(rect->x0, rect->y0, + rect->x1 - 1, rect->y1 - 1)); nsbeos_current_gc_set(NULL); g->view->UnlockLooper(); -- cgit v1.2.3