summaryrefslogtreecommitdiff
path: root/cocoa/Tree.m
diff options
context:
space:
mode:
Diffstat (limited to 'cocoa/Tree.m')
-rw-r--r--cocoa/Tree.m8
1 files changed, 7 insertions, 1 deletions
diff --git a/cocoa/Tree.m b/cocoa/Tree.m
index 507dc3658..da03e75dc 100644
--- a/cocoa/Tree.m
+++ b/cocoa/Tree.m
@@ -19,6 +19,7 @@
#import "cocoa/Tree.h"
#import "cocoa/coordinates.h"
#import "cocoa/font.h"
+#import "cocoa/plotter.h"
#import "desktop/tree.h"
@@ -124,8 +125,13 @@ static void tree_get_window_dimensions( int *width, int *height, void *data )
- (void) drawRect: (NSRect) rect inView: (NSView *) view;
{
+ struct redraw_context ctx = {
+ .interactive = true,
+ .plot = &cocoa_plotters
+ };
+
tree_draw( tree, 0, 0, cocoa_pt_to_px( NSMinX( rect ) ), cocoa_pt_to_px( NSMinY( rect )),
- cocoa_pt_to_px( NSWidth( rect ) ), cocoa_pt_to_px( NSHeight( rect ) ) );
+ cocoa_pt_to_px( NSWidth( rect ) ), cocoa_pt_to_px( NSHeight( rect ) ), &ctx );
}
- (void) mouseAction: (browser_mouse_state)state atPoint: (NSPoint)point;