From 810fb1a91964aabdf1ca022a699f16560f9c7c69 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Wed, 6 Jul 2011 12:48:45 +0000 Subject: Fix up Cocoa for r12574 API change. svn path=/trunk/netsurf/; revision=12578 --- cocoa/gui.m | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'cocoa') diff --git a/cocoa/gui.m b/cocoa/gui.m index 1e83806d9..fd1fdc3fa 100644 --- a/cocoa/gui.m +++ b/cocoa/gui.m @@ -134,12 +134,11 @@ void gui_window_redraw_window(struct gui_window *g) [[(BrowserViewController *)g browserView] setNeedsDisplay: YES]; } -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) { const NSRect rect = cocoa_scaled_rect_wh( [(BrowserViewController *)g browser]->scale, - data->redraw.object_x, data->redraw.object_y, - data->redraw.object_width, data->redraw.object_height ); + rect->x0, rect->y0, + rect->x1 - rect->x0, rect->y1 - rect->y0 ); [[(BrowserViewController *)g browserView] setNeedsDisplayInRect: rect]; } -- cgit v1.2.3