From 9d8976ababebfd7ce670cdb05e3bc303ac466bf6 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Thu, 15 May 2014 19:55:16 -0400 Subject: Migrated everything else to Objective-C native; fixed a few things I missed along the way. --- delegate_darwin.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'delegate_darwin.go') diff --git a/delegate_darwin.go b/delegate_darwin.go index 34dfec7..045df70 100644 --- a/delegate_darwin.go +++ b/delegate_darwin.go @@ -49,10 +49,10 @@ var ( func appDelegate_windowDidResize(win C.id) { s := getSysData(win) wincv := C.windowGetContentView(win) // we want the content view's size, not the window's - r := C.objc_msgSend_stret_rect_noargs(wincv, _frame) + r := C.frame(wincv) // winheight is used here because (0,0) is the bottom-left corner, not the top-left corner s.doResize(0, 0, int(r.width), int(r.height), int(r.height)) - C.objc_msgSend_noargs(win, _display) // redraw everything; TODO only if resize() was called? + C.display(win) // redraw everything; TODO only if resize() was called? } //export appDelegate_buttonClicked -- cgit v1.2.3