mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-23 17:32:02 +01:00
glfw: Replace the pointer size calc with bits.UintSize / 8
Updates #1306
This commit is contained in:
parent
ee15e06c50
commit
760225df75
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user