diff --git a/internal/glfw/glfw_windows.go b/internal/glfw/glfw_windows.go index f1b83bede..c13595cf7 100644 --- a/internal/glfw/glfw_windows.go +++ b/internal/glfw/glfw_windows.go @@ -17,6 +17,7 @@ package glfw import ( "image" "image/draw" + "math/bits" "runtime" "sync" "unsafe" @@ -384,7 +385,7 @@ func GetMonitors() []*Monitor { if m != nil { ms[i] = &Monitor{uintptr(m)} } - ptr += unsafe.Sizeof(unsafe.Pointer(uintptr(0))) + ptr += bits.UintSize / 8 } return ms }