mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-26 02:42:02 +01:00
parent
12f42544dd
commit
909f2fe492
@ -728,11 +728,15 @@ func (u *userInterfaceImpl) createWindow(width, height int) error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (u *userInterfaceImpl) beginFrame() {
|
func (u *userInterfaceImpl) beginFrame() {
|
||||||
|
u.t.Call(func() {
|
||||||
u.inFrame = true
|
u.inFrame = true
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
func (u *userInterfaceImpl) endFrame() {
|
func (u *userInterfaceImpl) endFrame() {
|
||||||
|
u.t.Call(func() {
|
||||||
u.inFrame = false
|
u.inFrame = false
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
// registerWindowSetSizeCallback must be called from the main thread.
|
// registerWindowSetSizeCallback must be called from the main thread.
|
||||||
|
Loading…
Reference in New Issue
Block a user