summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-05-30 23:41:35 -0400
committerPietro Gagliardi <[email protected]>2014-05-30 23:41:35 -0400
commit2ec0460ac62fbb5f82a8220d595dfc03b637b2d7 (patch)
tree30310ef294267c5accbad35d76104bb05152ab5a
parentb13453ad9e9aa20b6fca064f8b185b0ea86e5aaf (diff)
Removed TODOs about the sysData not being initialized at message time in area_windows.go; we have now solved that problem.
-rw-r--r--area_windows.go21
1 files changed, 5 insertions, 16 deletions
diff --git a/area_windows.go b/area_windows.go
index 38f401b..5302a2e 100644
--- a/area_windows.go
+++ b/area_windows.go
@@ -612,25 +612,14 @@ func areaWndProc(hwnd _HWND, uMsg uint32, wParam _WPARAM, lParam _LPARAM) _LRESU
// this is to make things flicker-free; see http://msdn.microsoft.com/en-us/library/ms969905.aspx
return 1
case _WM_HSCROLL:
- // TODO make this unnecessary
- if s != nil && s.hwnd != 0 { // this message can be sent before s is assigned properly
- scrollArea(s, wParam, _SB_HORZ)
- }
+ scrollArea(s, wParam, _SB_HORZ)
return 0
case _WM_VSCROLL:
- // TODO make this unnecessary
- if s != nil && s.hwnd != 0 { // this message can be sent before s is assigned properly
- scrollArea(s, wParam, _SB_VERT)
- return 0
- }
- return defWindowProc(hwnd, uMsg, wParam, lParam)
+ scrollArea(s, wParam, _SB_VERT)
+ return 0
case _WM_SIZE:
- // TODO make this unnecessary
- if s != nil && s.hwnd != 0 { // this message can be sent before s is assigned properly
- adjustAreaScrollbars(s)
- return 0
- }
- return defWindowProc(hwnd, uMsg, wParam, lParam)
+ adjustAreaScrollbars(s)
+ return 0
case _WM_ACTIVATE:
// don't keep the double-click timer running if the user switched programs in between clicks
s.clickCounter.reset()