fix issue #24
This commit is contained in:
6
main.go
6
main.go
@@ -242,8 +242,8 @@ func main() {
|
||||
config.File = "neko.ini"
|
||||
config.Parse(cfg)
|
||||
|
||||
width *= int(cfg.Scale)
|
||||
height *= int(cfg.Scale)
|
||||
width = int(float64(width) * cfg.Scale)
|
||||
height = int(float64(height) * cfg.Scale)
|
||||
|
||||
mSprite = make(map[string]*ebiten.Image)
|
||||
mSound = make(map[string][]byte)
|
||||
@@ -290,6 +290,8 @@ func main() {
|
||||
max: 16,
|
||||
}
|
||||
|
||||
log.Printf("Width: %d, Height: %d", width, height)
|
||||
|
||||
ebiten.SetRunnableOnUnfocused(true)
|
||||
ebiten.SetScreenClearedEveryFrame(false)
|
||||
ebiten.SetTPS(50)
|
||||
|
||||
Reference in New Issue
Block a user