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