diff options
| author | Pietro Gagliardi <[email protected]> | 2014-03-24 11:36:15 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-03-24 11:36:15 -0400 |
| commit | d1a41cd95a7d3779e67619f99ae288a59da0eb1c (patch) | |
| tree | f6ed87d5ec06600d3b9d9ba63a173a2a57a3c61c | |
| parent | 6e4ec82af59c6247a625fc781057333af22334ce (diff) | |
Corrected a copy-paste fail in stdwndclass_windows.go that broke compilation (this is why you test builds on all platforms, folks!) and added a TODO about resizing on Windows in the meantime.
| -rw-r--r-- | stdwndclass_windows.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/stdwndclass_windows.go b/stdwndclass_windows.go index ea443de..5ce356b 100644 --- a/stdwndclass_windows.go +++ b/stdwndclass_windows.go @@ -54,7 +54,8 @@ func stdWndProc(s *sysData) func(hwnd _HWND, uMsg uint32, wParam _WPARAM, lParam } // top-left corner is (0,0) so no need for winheight s.resizes = s.resizes[0:0] // set len to 0 without changing cap - s.resize(0, 0, width, height, &s.resizes) + s.resize(int(r.Left), int(r.Top), int(r.Right), int(r.Bottom), &s.resizes) + // TODO use the Defer movement functions here? for _, s := range s.resizes { err = s.sysData.setRect(s.x, s.y, s.width, s.height, 0) if err != nil { |
