diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2011-02-14 22:05:39 +0000 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2011-02-14 22:05:39 +0000 |
commit | 94e7b44ebc1710eed0f870428ddb5bfcd85858fa (patch) | |
tree | 2d75845c082051bac12cd41cf2d5139e019c16bf /cocoa | |
parent | 3ce0613193ca945566ec9ea056d6a67eae7d199c (diff) | |
download | netsurf-94e7b44ebc1710eed0f870428ddb5bfcd85858fa.tar.gz netsurf-94e7b44ebc1710eed0f870428ddb5bfcd85858fa.tar.bz2 |
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
Diffstat (limited to 'cocoa')
-rw-r--r-- | cocoa/plotter.m | 6 |
1 files changed, 3 insertions, 3 deletions
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 +} |