summaryrefslogtreecommitdiff
path: root/delegate_darwin.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-05-15 19:55:16 -0400
committerPietro Gagliardi <[email protected]>2014-05-15 19:55:16 -0400
commit9d8976ababebfd7ce670cdb05e3bc303ac466bf6 (patch)
treef9ef14b706baab853c9067f25a4fc57174d0d7ad /delegate_darwin.go
parentb73d4e9010a273fd4e3e0b809959387a3b020cb0 (diff)
Migrated everything else to Objective-C native; fixed a few things I missed along the way.
Diffstat (limited to 'delegate_darwin.go')
-rw-r--r--delegate_darwin.go4
1 files changed, 2 insertions, 2 deletions
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