summaryrefslogtreecommitdiff
path: root/common_windows.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-05-25 01:03:45 -0400
committerPietro Gagliardi <[email protected]>2014-05-25 01:03:45 -0400
commitb27caae7c3b66a1acf89e871fc5a1b8459572527 (patch)
tree51a1e7e8e6f572fd3fa7bb835897a298c76391db /common_windows.go
parent4408c1bf42e6b7cb46783eac464add017cfd12a6 (diff)
Renamed _LPARAM._X()/_LPARAM._Y() to _LPARAM.X()/_LPARAM.Y(): it doesn't matter since _LPARAM is not exported anyway, _WPARAM already had this change, and the constant checking tool complains that _X()/_Y() remain undefined (too early? do I need to merge the package files?).
Diffstat (limited to 'common_windows.go')
-rw-r--r--common_windows.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/common_windows.go b/common_windows.go
index 52bfddf..85dce45 100644
--- a/common_windows.go
+++ b/common_windows.go
@@ -50,14 +50,14 @@ func _MAKEINTRESOURCE(what uint16) uintptr {
return uintptr(what)
}
-func (l _LPARAM) _X() int32 {
+func (l _LPARAM) X() int32 {
// according to windowsx.h
loword := uint16(l & 0xFFFF)
short := int16(loword) // convert to signed...
return int32(short) // ...and sign extend
}
-func (l _LPARAM) _Y() int32 {
+func (l _LPARAM) Y() int32 {
// according to windowsx.h
hiword := uint16((l & 0xFFFF0000) >> 16)
short := int16(hiword) // convert to signed...