From e39a5d928c45f93d5d1379919d0a45c04021174f Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Fri, 21 Feb 2014 02:27:59 -0500 Subject: Fixed the unregistered window class error on 64-bit Windows: turns out it was a difference in Go's int vs. what Windows expected (thanks Microsoft for not using your special types here). Fixed all instances of this, even in unmigrated/. Still does not work in wine... --- unmigrated/stdfont_windows.go | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'unmigrated') diff --git a/unmigrated/stdfont_windows.go b/unmigrated/stdfont_windows.go index 1ba086c..255013a 100644 --- a/unmigrated/stdfont_windows.go +++ b/unmigrated/stdfont_windows.go @@ -30,17 +30,17 @@ type LOGFONT struct { type NONCLIENTMETRICS struct { cbSize uint32 - iBorderWidth int - iScrollWidth int - iScrollHeight int - iCaptionWidth int - iCaptionHeight int + iBorderWidth int32 // originally int + iScrollWidth int32 // originally int + iScrollHeight int32 // originally int + iCaptionWidth int32 // originally int + iCaptionHeight int32 // originally int lfCaptionFont LOGFONT - iSmCaptionWidth int - iSmCaptionHeight int + iSmCaptionWidth int32 // originally int + iSmCaptionHeight int32 // originally int lfSmCaptionFont LOGFONT - iMenuWidth int - iMenuHeight int + iMenuWidth int32 // originally int + iMenuHeight int32 // originally int lfMenuFont LOGFONT lfStatusFont LOGFONT lfMessageFont LOGFONT -- cgit v1.2.3