diff options
| author | Pietro Gagliardi <[email protected]> | 2014-06-10 14:59:39 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-06-10 14:59:39 -0400 |
| commit | 1e66637cd206066bced74b637e62283d9b367004 (patch) | |
| tree | 3d0c5a96eb7c5dd48232c4c935d4ca70e94311af /delegate_darwin.go | |
| parent | ad8a90ec7e4cfa8b6c3325cf2b2ce737c10f4804 (diff) | |
More go fmt.
Diffstat (limited to 'delegate_darwin.go')
| -rw-r--r-- | delegate_darwin.go | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/delegate_darwin.go b/delegate_darwin.go index d444459..1881567 100644 --- a/delegate_darwin.go +++ b/delegate_darwin.go @@ -2,10 +2,6 @@ package ui -import ( - // ... -) - /* This creates a class goAppDelegate that will be used as the delegate for /everything/. Specifically, it: - runs uitask requests (uitask:) @@ -36,11 +32,11 @@ func appDelegate_windowShouldClose(win C.id) { //export appDelegate_windowDidResize func appDelegate_windowDidResize(win C.id) { s := getSysData(win) - wincv := C.windowGetContentView(win) // we want the content view's size, not the window's + wincv := C.windowGetContentView(win) // we want the content view's size, not the window's 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.display(win) // redraw everything + C.display(win) // redraw everything } //export appDelegate_buttonClicked |
