summaryrefslogtreecommitdiff
path: root/stdwndclass_windows.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-06-08 00:55:11 -0400
committerPietro Gagliardi <[email protected]>2014-06-08 00:55:11 -0400
commitd4e06bb4d3b624e99d75d36fb69b2316b1b828c0 (patch)
tree2d24f18e8e48a2f993b8666c32c0ff9040c5c924 /stdwndclass_windows.go
parentde6f07bb135d0a401e5fb8f879dcf933d45a508d (diff)
Checked Windows RECT usage and fixed wrong ones.
Diffstat (limited to 'stdwndclass_windows.go')
-rw-r--r--stdwndclass_windows.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/stdwndclass_windows.go b/stdwndclass_windows.go
index df7aef8..c36b9fe 100644
--- a/stdwndclass_windows.go
+++ b/stdwndclass_windows.go
@@ -158,7 +158,7 @@ func stdWndProc(hwnd _HWND, uMsg uint32, wParam _WPARAM, lParam _LPARAM) _LRESUL
panic("GetClientRect failed: " + err.Error())
}
// top-left corner is (0,0) so no need for winheight
- s.doResize(int(r.left), int(r.top), int(r.right), int(r.bottom), 0)
+ s.doResize(int(r.left), int(r.top), int(r.right - r.left), int(r.bottom - r.top), 0)
// TODO use the Defer movement functions here?
// TODO redraw window and all children here?
}