summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-05-30 17:59:29 -0400
committerPietro Gagliardi <[email protected]>2014-05-30 17:59:29 -0400
commit4a66f1467bf0ee9a69c0758a53ab6f1425da166d (patch)
treef11a897c449cc7634c229e00db0d41a37ba8808d /tools
parentc543f5639b121bcdae11f681466c030394902f65 (diff)
Moved the standard window class (for Window) on Windows to get the sysData pointer from CreateWindowEx() and store it in the window memory instead of being given it via a closure. This will lead to having only one window class for all Windows, which will come next. Also fixed an error in windowsconstgen's output related to GetWindowLongPtr()/SetWindowLongPtr().
Diffstat (limited to 'tools')
-rw-r--r--tools/windowsconstgen.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/windowsconstgen.go b/tools/windowsconstgen.go
index 6be1b59..777324d 100644
--- a/tools/windowsconstgen.go
+++ b/tools/windowsconstgen.go
@@ -110,8 +110,8 @@ func preamble(pkg string) string {
// for backwards compatibiilty reasons, Windows defines GetWindowLongPtr()/SetWindowLongPtr() as a macro which expands to GetWindowLong()/SetWindowLong() on 32-bit systems
// we'll just simulate that here
var gwlpNames = map[string]string{
- "386": "etWindowLong",
- "amd64": "etWindowLongPtr",
+ "386": "etWindowLongW",
+ "amd64": "etWindowLongPtrW",
}
func printConst(f *os.File, goconst string, winconst string) {