remove all init() in UI, move into UI.Init()

This commit is contained in:
cuu
2019-01-07 22:09:53 +08:00
parent 003bb8f598
commit 4736ab131d
4 changed files with 20 additions and 8 deletions

View File

@@ -269,7 +269,6 @@ func run() int {
screen := display.SetMode(int32(UI.Width),int32(UI.Height),0,32)
UI.Init()
UI.MyIconPool.Init()
PreparationInAdv()
@@ -448,7 +447,9 @@ func run() int {
func main() {
var exitcode int
runtime.GOMAXPROCS(1)
os.Setenv("SDL_VIDEO_CENTERED","1")
sdl.Main(func() {