From adbc2b03155898450c6a1255751fca2b0c2e872b Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Wed, 31 Aug 2011 11:52:08 +0000 Subject: Avoid name clash. svn path=/trunk/netsurf/; revision=12684 --- cocoa/gui.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cocoa/gui.m b/cocoa/gui.m index fd1fdc3fa..80c09d123 100644 --- a/cocoa/gui.m +++ b/cocoa/gui.m @@ -136,10 +136,10 @@ void gui_window_redraw_window(struct gui_window *g) void gui_window_update_box(struct gui_window *g, const struct rect *rect) { - const NSRect rect = cocoa_scaled_rect_wh( [(BrowserViewController *)g browser]->scale, + const NSRect nsrect = cocoa_scaled_rect_wh( [(BrowserViewController *)g browser]->scale, rect->x0, rect->y0, rect->x1 - rect->x0, rect->y1 - rect->y0 ); - [[(BrowserViewController *)g browserView] setNeedsDisplayInRect: rect]; + [[(BrowserViewController *)g browserView] setNeedsDisplayInRect: nsrect]; } bool gui_window_get_scroll(struct gui_window *g, int *sx, int *sy) -- cgit v1.2.3