mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-13 22:47:26 +01:00
parent
1760070130
commit
b3ce89aab1
@ -107,10 +107,6 @@ func initialize() error {
|
|||||||
|
|
||||||
currentUI.window.MakeContextCurrent()
|
currentUI.window.MakeContextCurrent()
|
||||||
|
|
||||||
if i := currentUI.getInitIconImages(); i != nil {
|
|
||||||
currentUI.window.SetIcon(i)
|
|
||||||
}
|
|
||||||
|
|
||||||
currentUI.window.SetInputMode(glfw.StickyMouseButtonsMode, glfw.True)
|
currentUI.window.SetInputMode(glfw.StickyMouseButtonsMode, glfw.True)
|
||||||
currentUI.window.SetInputMode(glfw.StickyKeysMode, glfw.True)
|
currentUI.window.SetInputMode(glfw.StickyKeysMode, glfw.True)
|
||||||
return nil
|
return nil
|
||||||
@ -541,6 +537,10 @@ func Run(width, height int, scale float64, title string, g GraphicsContext, main
|
|||||||
}
|
}
|
||||||
u.window.SetInputMode(glfw.CursorMode, mode)
|
u.window.SetInputMode(glfw.CursorMode, mode)
|
||||||
|
|
||||||
|
if i := currentUI.getInitIconImages(); i != nil {
|
||||||
|
currentUI.window.SetIcon(i)
|
||||||
|
}
|
||||||
|
|
||||||
// Get the monitor before showing the window.
|
// Get the monitor before showing the window.
|
||||||
//
|
//
|
||||||
// On Windows, there are two types of windows:
|
// On Windows, there are two types of windows:
|
||||||
|
Loading…
Reference in New Issue
Block a user