mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +01:00
internal/ui: bug fix: check the error of TimeBeginPeriod
This commit is contained in:
parent
7e4cdf5211
commit
11394d246f
@ -249,6 +249,7 @@ func init() {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
// Use a better timer resolution (golang/go#44343).
|
// Use a better timer resolution (golang/go#44343).
|
||||||
|
// An error is ignored. The application is still valid even if a higher resolution timer is not available.
|
||||||
// TODO: This might not be necessary from Go 1.23.
|
// TODO: This might not be necessary from Go 1.23.
|
||||||
windows.TimeBeginPeriod(1)
|
_ = windows.TimeBeginPeriod(1)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user