From 94e7b44ebc1710eed0f870428ddb5bfcd85858fa Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Mon, 14 Feb 2011 22:05:39 +0000 Subject: Pass clip rect to clip plotters as struct. Simplify clip rect handling in debug window code. Pass clip rect to select menu as struct. svn path=/trunk/netsurf/; revision=11683 --- cocoa/plotter.m | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'cocoa') diff --git a/cocoa/plotter.m b/cocoa/plotter.m index 63ec807a0..c51e82c91 100644 --- a/cocoa/plotter.m +++ b/cocoa/plotter.m @@ -124,9 +124,9 @@ void cocoa_set_clip( NSRect rect ) cocoa_plot_clip_rect = rect; } -static bool plot_clip(int x0, int y0, int x1, int y1) +static bool plot_clip(const struct rect *clip) { - cocoa_plot_clip_rect = cocoa_rect( x0, y0, x1, y1 ); + cocoa_plot_clip_rect = cocoa_rect( clip->x0, clip->y0, clip->x1, clip->y1 ); return true; } @@ -329,4 +329,4 @@ static inline void cocoa_center_pixel( bool x, bool y ) NSAffineTransform *transform = [NSAffineTransform transform]; [transform translateXBy: x ? cocoa_half_pixel : 0.0 yBy: y ? cocoa_half_pixel : 0.0]; [transform concat]; -} \ No newline at end of file +} -- cgit v1.2.3