summaryrefslogtreecommitdiff
path: root/cocoa/plotter.m
diff options
context:
space:
mode:
Diffstat (limited to 'cocoa/plotter.m')
-rw-r--r--cocoa/plotter.m6
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
+}