summaryrefslogtreecommitdiff
path: root/unmigrated/stdfont_windows.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-02-21 02:27:59 -0500
committerPietro Gagliardi <[email protected]>2014-02-21 02:27:59 -0500
commite39a5d928c45f93d5d1379919d0a45c04021174f (patch)
treef3246b242521ef7e94292b8da473379dae77cbd7 /unmigrated/stdfont_windows.go
parentbd51e3e9a7af663570a0f77d9cbf395ce31d66bf (diff)
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...
Diffstat (limited to 'unmigrated/stdfont_windows.go')
-rw-r--r--unmigrated/stdfont_windows.go18
1 files changed, 9 insertions, 9 deletions
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